/* Colores de la marca */
:root {
    --azul-agp: #000F9F;
    --verde-agp: #38D4AE;
    --gris-agp: #58595B;
    --fondo: #fff;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f7f4 100%);
    color: var(--gris-agp);
}

/** NAVBAR MODERNO **/
header {
  width: 100%;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: transparent;
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,15,159,0.07);
  padding: 0 2.5vw;
  min-height: 68px;
  transition: box-shadow 0.3s, border 0.3s, background 0.3s;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 68px;
}
.navbar-logo {
  height: 48px;
  width: auto;
  margin-right: 1.2rem;
  transition: filter 0.2s;
}
.navbar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  position: relative;
}
.navbar ul {
  display: flex;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar li {
  margin: 0;
}
.navbar a {
  color: #000F9F;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 0.7rem 0.8rem 0.5rem 0.8rem;
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: color 0.2s, background 0.2s;
  display: inline-block;
}
.navbar a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #000F9F, #38D4AE);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4,0.2,0.2,1);
}
.navbar a:hover, .navbar a:focus {
  color: #38D4AE;
  background: rgba(56,212,174,0.07);
}
.navbar a:hover::after, .navbar a:focus::after {
  transform: scaleX(1);
}
.navbar-burger {
  display: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 44px;
  width: 44px;
  margin-left: 1.2rem;
  z-index: 2100;
}
.navbar-burger span {
  display: block;
  width: 28px;
  height: 3.5px;
  background: #000F9F;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
/* Overlay y menú móvil */
.navbar-mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  z-index: 2050;
  transition: opacity 0.3s;
}
.navbar-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.navbar-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.navbar-mobile a {
  color: #000F9F;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.7px;
  transition: color 0.2s;
}
.navbar-mobile a:hover, .navbar-mobile a:focus {
  color: #38D4AE;
}
/* Mostrar menú móvil */
.navbar-mobile-overlay.active {
  display: block;
  animation: fadeInOverlay 0.3s;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 1000px) {
  .navbar ul {
    display: none;
  }
  .navbar-burger {
    display: flex;
  }
}
/* Ocultar menú al bajar scroll */
header.navbar-hide {
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0.2,0.2,1);
}
header {
  transition: transform 0.4s cubic-bezier(0.4,0.2,0.2,1);
}

.inicio {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.inicio-contenido {
    background: rgba(30, 40, 60, 0.55);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.10);
    backdrop-filter: blur(6px);
    padding: 3.5rem 2.5rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 540px;
    width: 100%;
    animation: fadeInUp 1.1s cubic-bezier(0.4,0.2,0.2,1);
    border: 2.5px solid rgba(56,212,174,0.10);
    margin-top: 40px;
    margin-bottom: 40px;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px) scale(0.98); }
    100% { opacity: 1; transform: none; }
}

.inicio-contenido .logo-agp {
    width: 260px;
    max-width: 80vw;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 0.7rem 1.2rem;
}

.inicio-contenido h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.inicio-contenido .ingenieria {
    color: var(--verde-agp) !important;
    font-family: 'Brush Script MT', cursive;
    font-size: 2.7rem;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.inicio-contenido .bienvenida {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.inicio-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--azul-agp), var(--verde-agp));
    color: #fff;
    font-weight: bold;
    font-size: 1.15rem;
    padding: 0.9rem 2.2rem;
    border-radius: 32px;
    box-shadow: 0 2px 12px rgba(56,212,174,0.13);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.inicio-btn:hover, .inicio-btn:focus {
    background: linear-gradient(90deg, var(--verde-agp), var(--azul-agp));
    transform: scale(1.06);
    box-shadow: 0 8px 32px rgba(0,15,159,0.13);
}

h1, h2, h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--gris-agp);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}

.ingenieria {
    color: var(--verde-agp);
    font-family: 'Brush Script MT', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.bienvenida, .proyectos-intro, .noticias-intro, .contacto-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--gris-agp);
}

.espacio-imagenes {
    width: 100%;
    min-height: 120px;
    background: #f4f4f4;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1rem;
    font-style: italic;
}

.quienes-somos {
  background: linear-gradient(120deg, #f8fafc 80%, #e0eefa 100%);
  padding: 80px 0 40px 0;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px rgba(56,212,174,0.07);
}
.quienes-somos h2 {
  color: #000F9F;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
}
.qs-contenido {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
}
.qs-textos {
  flex: 0 1 60%;
  max-width: 60%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
}
.qs-textos > p {
  font-size: 1.15rem;
  color: #58595B;
  margin-bottom: 0.5rem;
  line-height: 1.7;
  max-width: 540px;
}
.qs-imagen {
  flex: 0 1 40%;
  max-width: 40%;
  min-width: 220px;
  min-height: 260px;
  background: #e0eefa;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 1.1rem;
  font-style: italic;
  box-shadow: 0 2px 12px rgba(0,15,159,0.07);
}
.qs-textos h3 {
  color: #38D4AE;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.qs-textos ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.7rem;
  padding-left: 0;
  margin-bottom: 0.5rem;
  list-style: none;
  width: 100%;
}
.qs-textos li {
  flex: 1 1 120px;
  min-width: 120px;
  max-width: 180px;
  background: rgba(56,212,174,0.13);
  color: #000F9F;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.6em 1.2em;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(56,212,174,0.07);
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background 0.2s, color 0.2s;
  justify-content: center;
  text-align: center;
}
.qs-textos li::before {
  content: '★';
  color: #38D4AE;
  font-size: 1.1em;
  margin-right: 0.3em;
}
@media (max-width: 900px) {
  .qs-contenido {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  .qs-textos, .qs-imagen {
    max-width: 100%;
    flex: 1 1 100%;
    align-items: center;
    text-align: center;
  }
  .qs-textos ul {
    justify-content: center;
  }
}

.servicios {
    background: var(--fondo);
    padding: 80px 0 40px 0;
}

.servicios h2 {
    color: var(--azul-agp);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.servicios-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.servicio {
    background: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.servicio-icono {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    background: #e0eefa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-agp);
    font-size: 2rem;
}

.servicio h3 {
    color: var(--azul-agp);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.servicio p {
    color: var(--gris-agp);
    font-size: 1.05rem;
}

.sostenibilidad {
    background: var(--fondo);
    padding: 80px 0 40px 0;
}

.sostenibilidad h2 {
    color: var(--verde-agp);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.sost-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

.sost-texto {
    flex: 2 1 350px;
    min-width: 300px;
}

.sost-texto ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.sost-texto li {
    margin-bottom: 0.3rem;
    color: var(--verde-agp);
    font-weight: 500;
}

.sost-imagen {
    flex: 1 1 250px;
    min-width: 200px;
    min-height: 180px;
    background: #e0f7f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1rem;
    font-style: italic;
}

.proyectos {
    background: var(--fondo);
    padding: 80px 0 40px 0;
}

.proyectos h2 {
    color: var(--azul-agp);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.proyectos-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--gris-agp);
    font-size: 1.15rem;
}

.proyectos-galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.proyecto {
    background: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.proyecto-img {
    width: 100%;
    height: 140px;
    background: #e0eefa;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1rem;
    font-style: italic;
}

.proyecto h3 {
    color: var(--azul-agp);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.proyecto p {
    color: var(--gris-agp);
    font-size: 1rem;
}

.noticias {
    background: #fff;
    padding: 80px 0 80px 0;
}

.noticias h2 {
    color: var(--azul-agp);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.noticias-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--gris-agp);
    font-size: 1.15rem;
}

.noticias-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.noticia {
    background: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1.5rem 1rem 1.5rem 1rem;
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.noticia-img {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1rem;
    font-style: italic;
}

.noticia-img img {
    max-width: 90px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.noticia-info h3 {
    color: var(--azul-agp);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.noticia-fecha {
    display: block;
    color: var(--verde-agp);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.noticia-info p {
    color: var(--gris-agp);
    font-size: 1rem;
}

.contacto {
    background: var(--fondo);
    padding: 80px 0 40px 0;
}

.contacto h2 {
    color: var(--azul-agp);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.contacto-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--gris-agp);
    font-size: 1.15rem;
}

.contacto-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contacto-formulario {
    flex: 2 1 320px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f4f4f4;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contacto-formulario label {
    color: var(--azul-agp);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.7rem;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
    outline: none;
    border-color: var(--verde-agp);
}

.contacto-formulario button {
    background: linear-gradient(90deg, var(--azul-agp), var(--verde-agp));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(56,212,174,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.contacto-formulario button:hover, .contacto-formulario button:focus {
    background: linear-gradient(90deg, var(--verde-agp), var(--azul-agp));
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(0,15,159,0.13);
}

.contacto-datos {
    flex: 1 1 220px;
    min-width: 200px;
    background: #e0f7f4;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.7rem;
}

.contacto-datos h3 {
    color: var(--azul-agp);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer {
    background: #f4f4f4;
    color: var(--gris-agp);
    padding: 0;
    margin-top: 2rem;
    border-top: 4px solid var(--azul-agp);
    font-size: 1.05rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 1.2rem 2rem;
    gap: 2.5rem;
}

.footer-col {
    flex: 1 1 220px;
    min-width: 180px;
}

.footer-col-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.footer-logo {
    width: 140px;
    margin-bottom: 0.7rem;
}

.footer-col-links h4,
.footer-col-info h4 {
    color: var(--azul-agp);
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.footer-col-links ul,
.footer-col-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-links li,
.footer-col-info li {
    margin-bottom: 0.5rem;
}

.footer-col-links a,
.footer-col-info a {
    color: var(--gris-agp);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col-links a:hover,
.footer-col-info a:hover {
    color: var(--azul-agp);
    text-decoration: underline;
}

.footer-bottom {
    background: #e0eefa;
    border-top: 1.5px solid #d0dbe8;
    padding: 1.1rem 2rem 0.7rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0.2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(56,212,174,0.10);
    transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
    background: var(--verde-agp);
    transform: scale(1.13);
}

.footer-copy {
    color: var(--gris-agp);
    font-size: 0.98rem;
    text-align: center;
}

section {
    position: relative;
    padding-bottom: 40px;
}

/* 1. Animaciones de entrada */
.fade-in, .slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.4,0.2,0.2,1);
}
.fade-in.visible, .slide-up.visible {
  opacity: 1;
  transform: none;
}
.slide-up {
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.4,0.2,0.2,1);
}

/* 2. Separadores SVG de onda */
section:not(:last-of-type)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 48px;
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="48" viewBox="0 0 1440 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H1440V48C960 16 480 16 0 48V0Z" fill="%23e0f7f4"/></svg>') no-repeat center bottom/cover;
    z-index: 1;
}

/* 3. Glassmorphism en tarjetas */
.servicio, .proyecto, .noticia, .contacto-formulario, .contacto-datos {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(56,212,174,0.10), 0 2px 8px rgba(0,0,0,0.04);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(56,212,174,0.10);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 0.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

/* 4. Hover en tarjetas e imágenes */
.servicio:hover, .proyecto:hover, .noticia:hover, .servicio img:hover, .proyecto img:hover, .noticia img:hover {
    box-shadow: 0 12px 32px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.10);
    transform: translateY(-10px) scale(1.04);
    border-color: var(--azul-agp);
    z-index: 2;
}

/* 5. Ejemplo de íconos SVG en servicios */
.servicio-icono {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f7f4;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(56,212,174,0.10);
}

/* 6. Botón pulse */
.inicio-btn {
    position: relative;
    overflow: hidden;
}
.inicio-btn:active::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: rgba(56,212,174,0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-btn 0.5s;
    z-index: 1;
}
@keyframes pulse-btn {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200px; height: 200px; opacity: 0; }
}

/* 7. Color acento */
:root {
    --acento: #4fd1ff;
}
.footer-social a:hover {
    background: var(--acento);
}

/* 8. Tipografía jerárquica y aireada */
h1, h2, h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
h1 { font-size: 2.7rem; margin-bottom: 1.2rem; }
h2 { font-size: 2.1rem; margin-bottom: 1.1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
section { padding-bottom: 40px; }

/* 9. Fondo decorativo sutil en sección proyectos */
.proyectos {
    background: linear-gradient(120deg, #f8fafc 80%, #e0f7f4 100%);
}

/* 10. Brillo animado en el sello AGP al hover */
.agp-sello-fixed:hover img, .agp-sello-fixed:focus img {
    filter: drop-shadow(0 0 12px var(--verde-agp)) brightness(1.15);
    transition: filter 0.3s;
}

input, textarea {
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1.5px solid #cce;
    padding: 0.9rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.85);
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    border: 2px solid var(--verde-agp);
    box-shadow: 0 0 0 2px #b2f5e6;
}

.contacto-formulario button {
    transition: background 0.2s, transform 0.2s;
}
.contacto-formulario button:active {
    transform: scale(0.97);
}

/* Accesibilidad: foco visible */
a, button, input, textarea {
    outline: none;
}
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2.5px solid #38D4AE;
    outline-offset: 2px;
    box-shadow: 0 0 0 2.5px #b2f5e6;
}

/* Mejor contraste para el menú activo */
.navbar a.active,
.navbar a.active:hover,
.navbar a.active:focus {
  background: linear-gradient(90deg, #000F9F 60%, #38D4AE 100%) !important;
  color: #fff !important;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 12px rgba(56,212,174,0.10);
  border-bottom: 4px solid #38D4AE;
  transition: background 0.3s, color 0.3s, border 0.3s;
}
.navbar a:focus, .navbar a:active {
  background: none !important;
  color: inherit;
  border-radius: 8px 8px 0 0;
}

.presencia {
    background: var(--fondo);
    padding: 80px 0 80px 0;
    text-align: center;
}

.presencia h2 {
    color: var(--azul-agp);
    font-size: 2.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.presencia-destacada {
    color: var(--verde-agp);
}

.presencia-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.presencia-texto {
    flex: 2 1 320px;
    min-width: 220px;
    font-size: 1.2rem;
    color: var(--gris-agp);
    text-align: left;
}

.presencia-mapa {
    flex: 1 1 220px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56,212,174,0.07);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,15,159,0.07);
    padding: 1.2rem;
}

.presencia-mapa svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    bottom: 50%;
    transform: translateY(50%) scale(1) rotate(0deg);
    background: rgba(34,34,34,0.95);
    color: #fff;
    padding: 0.7em 1.2em;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    z-index: 2100;
}

.whatsapp-tooltip::after { display: none; }

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(50%) scale(1) rotate(0deg);
}

.whatsapp-float {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 60%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(37,211,102,0.28), 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    animation: whatsapp-pop 0.8s cubic-bezier(0.4,0.2,0.2,1);
    border: 3px solid #fff;
    outline: none;
}

.whatsapp-icon-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 2px 8px rgba(18,140,126,0.10);
}

.whatsapp-shine {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0.7;
    pointer-events: none;
    animation: shine-move 2.2s infinite linear;
}

@keyframes shine-move {
    0% { opacity: 0.7; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.08) rotate(10deg); }
    100% { opacity: 0.7; transform: scale(1) rotate(0deg); }
}

.whatsapp-float:hover, .whatsapp-float:focus {
    transform: scale(1.18) rotate(-8deg);
    box-shadow: 0 16px 48px rgba(37,211,102,0.38), 0 2px 8px rgba(0,0,0,0.13);
    animation: whatsapp-bounce 0.5s;
}

@keyframes whatsapp-pop {
    0% { transform: scale(0.7); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes whatsapp-bounce {
    0% { transform: scale(1.13) rotate(-8deg); }
    30% { transform: scale(1.22) rotate(8deg); }
    60% { transform: scale(1.13) rotate(-8deg); }
    100% { transform: scale(1.13) rotate(-8deg); }
}

@media (max-width: 900px) {
    h1 {
        font-size: 2.1rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .navbar ul {
        gap: 0.5rem;
    }
    section:not(:last-of-type)::after {
        height: 24px;
    }
    .qs-contenido {
        flex-direction: column;
        align-items: stretch;
    }
    .qs-imagen {
        margin-top: 2rem;
    }
    .servicios-lista {
        flex-direction: column;
        align-items: stretch;
    }
    .servicio {
        max-width: 100%;
    }
    .sost-contenido {
        flex-direction: column;
        align-items: stretch;
    }
    .sost-imagen {
        margin-top: 2rem;
    }
    .proyectos-galeria {
        flex-direction: column;
        align-items: stretch;
    }
    .proyecto {
        max-width: 100%;
    }
    .noticias-lista {
        flex-direction: column;
        align-items: stretch;
    }
    .noticia {
        max-width: 100%;
    }
    .contacto-contenido {
        flex-direction: column;
        align-items: stretch;
    }
    .contacto-formulario, .contacto-datos {
        max-width: 100%;
    }
    .presencia-contenido {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .presencia-texto {
        text-align: center;
    }
    .footer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 2rem 1rem 1rem 1rem;
    }
    .footer-col-logo {
        align-items: center;
        text-align: center;
    }
} 

.inicio-bg {
    position: relative;
    overflow: hidden;
}
.inicio-bg::after {
    content: none;
}
.inicio-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 30, 40, 0.55); /* Oscurece la imagen de fondo */
  z-index: 1;
  pointer-events: none;
}

.inicio-info.derecha {
  align-items: flex-end;
  margin-left: auto;
  margin-right: 0;
  height: 100vh;
  min-height: 600px;
  display: flex;
  justify-content: flex-end;
}

.inicio-info-bg {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: 80vh;
  min-height: 420px;
  width: 38vw;
  max-width: 540px;
  padding: 3.5rem 3rem 3.5rem 2.5rem;
  background: rgba(20, 30, 40, 0.97);
  border-top-left-radius: 60vw;
  border-bottom-left-radius: 60vw;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 8px 32px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.10);
  position: relative;
  z-index: 2;
  transition: width 1.2s cubic-bezier(0.77,0,0.175,1), height 1.2s cubic-bezier(0.77,0,0.175,1), background 0.5s;
}
.inicio-info-bg:hover {
  width: 55vw;
  height: 95vh;
  min-height: 520px;
  max-width: 800px;
}
.inicio-info-bg p,
.inicio-info-bg .bienvenida,
.inicio-info-bg .logo-agp,
.inicio-info-bg a {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

@media (max-width: 1200px) {
  .inicio-info-bg {
    width: 55vw;
    max-width: 98vw;
    height: 60vh;
    min-height: 320px;
    border-top-left-radius: 80vw;
    border-bottom-left-radius: 80vw;
    padding: 2rem 1.5rem 2rem 1rem;
  }
  .inicio-info-bg:hover {
    width: 80vw;
    height: 80vh;
    min-height: 400px;
    max-width: 98vw;
  }
  .inicio-info.derecha {
    height: 60vh;
    min-height: 320px;
  }
}
@media (max-width: 700px) {
  .inicio-info-bg {
    width: 98vw;
    height: 50vh;
    min-height: 200px;
    border-top-left-radius: 60vw;
    border-bottom-left-radius: 60vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .inicio-info-bg:hover {
    width: 98vw;
    height: 60vh;
    min-height: 200px;
    max-width: 98vw;
  }
  .inicio-info.derecha {
    height: 50vh;
    min-height: 200px;
  }
}

.inicio-info > * {
    position: relative;
    z-index: 2;
}

.inicio-img {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6vw 0 3vw;
    background: transparent;
}
.inicio-carrusel.grande {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 1.2rem;
}
.inicio-carrusel.grande .carrusel-imagenes {
    width: 200%;
    height: auto;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0eefa;
    position: relative;
}
.carrusel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    z-index: 1;
}
.carrusel-img.activa {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.carrusel-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: background 0.2s;
    cursor: pointer;
}
.carrusel-izq {
    left: 0;
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
}
.carrusel-der {
    right: 0;
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
}
.carrusel-izq:hover, .carrusel-izq:focus {
    background: linear-gradient(90deg, rgba(0,0,0,0.18) 80%, transparent 100%);
}
.carrusel-der:hover, .carrusel-der:focus {
    background: linear-gradient(270deg, rgba(0,0,0,0.18) 80%, transparent 100%);
}
@media (max-width: 1000px) {
    .inicio-layout {
        flex-direction: column;
        gap: 2rem;
        height: auto;
        min-height: unset;
    }
    .inicio-info, .inicio-img {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 0 2vw;
    }
    .inicio-carrusel.grande, .inicio-carrusel.grande .carrusel-imagenes {
        width: 100%;
        height: 220px;
        max-width: 100vw;
        max-height: 40vh;
    }
} 

.agp-sello-fixed {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 3000;
    background: rgba(255,255,255,0.55);
    border-radius: 22px;
    box-shadow: 0 4px 24px 0 rgba(0,15,159,0.07);
    padding: 5px 10px 5px 8px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: background 0.3s, box-shadow 0.3s, border-radius 0.3s;
}

.agp-sello-fixed img {
    width: 54px;
    height: auto;
    display: block;
    background: transparent;
}

@media (max-width: 700px) {
    .agp-sello-fixed {
        top: 6px;
        left: 6px;
        padding: 2px 5px 2px 4px;
        border-radius: 14px;
    }
    .agp-sello-fixed img {
        width: 30px;
    }
} 

.inicio-carrusel.grande {
    width: 420px;
    height: 420px;
    min-width: 340px;
    min-height: 340px;
    max-width: 520px;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 0 auto;
}
.inicio-carrusel.grande .carrusel-imagenes {
    width: 100%;
    height: 100%;
    max-width: 520px;
    max-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0eefa;
}
@media (max-width: 1000px) {
    .inicio-carrusel.grande {
        width: 95vw;
        height: 220px;
        min-width: 120px;
        min-height: 120px;
        max-width: 98vw;
        max-height: 40vh;
    }
    .inicio-carrusel.grande .carrusel-imagenes {
        width: 90vw;
        height: 100%;
        max-width: 98vw;
        max-height: 40vh;
    }
} 

.mision-vision-section {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2.5rem 0 2rem 0;
}
.mv-card {
  flex: 1 1 320px;
  background: rgba(255,255,255,0.82);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(56,212,174,0.13), 0 2px 8px rgba(0,0,0,0.04);
  border: 2.5px solid #38D4AE;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: linear-gradient(90deg, #000F9F 0%, #38D4AE 100%);
  opacity: 0.18;
  z-index: 2;
}
.mv-card:hover {
  box-shadow: 0 16px 40px rgba(0,15,159,0.18), 0 2px 8px rgba(56,212,174,0.13);
  border: 2.5px solid #000F9F;
  transform: translateY(-8px) scale(1.03);
}
.mv-icon svg {
  filter: drop-shadow(0 2px 8px rgba(56,212,174,0.10));
}
.mv-card h3 {
  color: #000F9F;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.mv-card p {
  color: #58595B;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .mision-vision-section {
    flex-direction: column;
    gap: 1.5rem;
  }
} 

.qs-contenido.solo-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  gap: 2.5rem;
}
.qs-contenido.solo-texto .qs-textos {
  align-items: center;
  text-align: center;
  max-width: 700px;
}
.qs-contenido.solo-texto .mision-vision-section {
  justify-content: center;
}
.qs-contenido.solo-texto ul {
  justify-content: center;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .qs-contenido.solo-texto {
    max-width: 98vw;
    gap: 1.5rem;
  }
  .qs-contenido.solo-texto .qs-textos {
    max-width: 98vw;
  }
} 

.areas-proyectos {
  background: #fff;
  padding: 70px 0 80px 0;
  text-align: center;
}
.areas-proyectos h2 {
  color: #000F9F;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.area-card {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(56,212,174,0.10), 0 2px 8px rgba(0,0,0,0.04);
  padding: 0 0 2.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.area-card:hover {
  box-shadow: 0 12px 32px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.13);
  transform: translateY(-8px) scale(1.03);
}
.area-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #e0eefa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.area-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.area-card:hover .area-img img {
  transform: scale(1.06);
}
.area-card h3 {
  color: #000F9F;
  font-size: 1.25rem;
  margin: 1.3rem 0 1rem 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.area-btn {
  display: inline-block;
  background: linear-gradient(90deg, #000F9F, #38D4AE);
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  padding: 0.7rem 2.1rem;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(56,212,174,0.13);
  text-decoration: none;
  margin-top: 0.7rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  border: none;
}
.area-btn:hover, .area-btn:focus {
  background: linear-gradient(90deg, #38D4AE, #000F9F);
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(0,15,159,0.13);
}
@media (max-width: 1000px) {
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .areas-proyectos {
    padding: 40px 0 20px 0;
  }
} 

.sost-card { display: unset; background: unset; border: none; box-shadow: none; padding: 0; margin: 0; max-width: unset; border-radius: 0; }
.sost-icono {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sostenibilidad {
  text-align: center;
  padding: 80px 0 80px 0;
}
.sostenibilidad h2 {
  color: #000F9F;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.sost-texto {
  color: #58595B;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.7rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.sost-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  padding-left: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 700px;
}
.sost-lista li {
  background: rgba(56,212,174,0.13);
  color: #000F9F;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.7em 1.4em;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(56,212,174,0.07);
  display: flex;
  align-items: center;
  gap: 0.6em;
  transition: background 0.2s, color 0.2s;
  justify-content: center;
  text-align: center;
}
.sost-lista-icono {
  font-size: 1.25em;
  margin-right: 0.2em;
}
@media (max-width: 900px) {
  .sost-lista {
    gap: 0.7rem;
    max-width: 98vw;
  }
} 

.trabaja-con {
  background: #fff;
  padding: 70px 0 90px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.trabaja-icono {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trabaja-con h2 {
  color: #000F9F;
  font-size: 2rem;
  margin-bottom: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.trabaja-texto {
  color: #58595B;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.7rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.trabaja-btn {
  display: inline-block;
  background: linear-gradient(90deg, #000F9F, #38D4AE);
  color: #fff;
  font-weight: bold;
  font-size: 1.08rem;
  padding: 0.7rem 2.1rem;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(56,212,174,0.13);
  text-decoration: none;
  margin-top: 0.7rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  border: none;
}
.trabaja-btn:hover, .trabaja-btn:focus {
  background: linear-gradient(90deg, #38D4AE, #000F9F);
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(0,15,159,0.13);
}
@media (max-width: 900px) {
  .trabaja-con {
    padding: 40px 0 60px 0;
  }
  .trabaja-texto {
    max-width: 98vw;
  }
} 

@media (max-width: 1000px) {
  .qs-contenido,
  .qs-contenido.solo-texto,
  .mision-vision-section,
  .areas-grid,
  .noticias-lista,
  .proyectos-galeria,
  .sost-lista,
  .footer-main,
  .trabaja-con {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 1.5rem;
  }
  .qs-textos, .mv-card, .area-card, .noticia, .proyecto, .sost-card, .trabaja-con {
    align-items: center !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  .area-btn, .inicio-btn, .trabaja-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .areas-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}
section {
  padding-bottom: 70px !important;
}
.areas-proyectos, .noticias, .sostenibilidad, .presencia, .quienes-somos {
  padding-bottom: 90px !important;
} 

.form-msg {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  font-weight: 600;
  min-height: 1.5em;
  transition: color 0.3s, background 0.3s;
  text-align: center;
}
.form-msg.success {
  color: #38D4AE;
  background: rgba(56,212,174,0.08);
  border-radius: 8px;
  padding: 0.5em 1em;
}
.form-msg.error {
  color: #d43c38;
  background: rgba(212,60,56,0.08);
  border-radius: 8px;
  padding: 0.5em 1em;
}
.contacto-formulario input:invalid, .contacto-formulario textarea:invalid {
  border-color: #d43c38;
  box-shadow: 0 0 0 2px #ffd6d6;
}
.contacto-formulario input:valid, .contacto-formulario textarea:valid {
  border-color: #38D4AE;
  box-shadow: 0 0 0 2px #b2f5e6;
} 

.scroll-top {
  position: fixed;
  right: 32px;
  bottom: 170px; /* Más arriba para no chocar con WhatsApp */
  z-index: 2100;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #000F9F 60%, #38D4AE 100%);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: 3px solid #fff;
  outline: none;
  animation: scrolltop-fadein 0.5s;
}
@keyframes scrolltop-fadein {
  from { opacity: 0; transform: scale(0.7) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.08);
}
.scroll-top:hover, .scroll-top:focus {
  background: linear-gradient(135deg, #38D4AE 60%, #000F9F 100%);
  transform: scale(1.15);
  box-shadow: 0 16px 48px rgba(56,212,174,0.18), 0 2px 8px rgba(0,0,0,0.13);
}
@media (max-width: 700px) {
  .scroll-top {
    right: 18px;
    bottom: 120px; /* Más arriba en móvil */
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
} 

/* Separadores SVG personalizados */
section.separador-onda:not(:last-of-type)::after,
section.separador-invertido:not(:last-of-type)::after,
section.separador-diagonal:not(:last-of-type)::after {
    display: none !important;
} 

/* Separadores SVG curvos y llamativos */
section.separador-azul:not(:last-of-type)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 54px;
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="54" viewBox="0 0 1440 54" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H1440V54C960 18 480 18 0 54V0Z" fill="%23000F9F" fill-opacity="0.13"/></svg>') no-repeat center bottom/cover;
    z-index: 1;
}
section.separador-verde:not(:last-of-type)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 54px;
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="54" viewBox="0 0 1440 54" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H1440V54C960 18 480 18 0 54V0Z" fill="%2338D4AE" fill-opacity="0.13"/></svg>') no-repeat center bottom/cover;
    z-index: 1;
}
section.separador-degradado:not(:last-of-type)::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 54px;
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="54" viewBox="0 0 1440 54" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="grad1" x1="0" y1="0" x2="1" y2="0"><stop offset="0%25" stop-color="%23000F9F"/><stop offset="100%25" stop-color="%2338D4AE"/></linearGradient></defs><path d="M0 0H1440V54C960 18 480 18 0 54V0Z" fill="url(%23grad1)" fill-opacity="0.18"/></svg>') no-repeat center bottom/cover;
    z-index: 1;
} 

.navbar a.active {
  background: linear-gradient(90deg, #000F9F 60%, #38D4AE 100%);
  color: #fff !important;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 12px rgba(56,212,174,0.10);
  border-bottom: 4px solid #38D4AE;
  transition: background 0.3s, color 0.3s, border 0.3s;
} 

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: rgba(0, 15, 159, 0.97);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.1rem 2rem;
  box-shadow: 0 -2px 16px rgba(56,212,174,0.10);
  font-size: 1.08rem;
  font-weight: 500;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: cookie-fadein 0.7s;
}
.cookie-btn {
  background: linear-gradient(90deg, #38D4AE, #000F9F);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 0.7em 2.1em;
  font-size: 1.08rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(56,212,174,0.13);
  transition: background 0.2s, transform 0.2s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: linear-gradient(90deg, #000F9F, #38D4AE);
  transform: scale(1.06);
}
.cookie-link {
  color: #38D4AE;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.cookie-link:hover, .cookie-link:focus {
  color: #fff;
}
@keyframes cookie-fadein {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1rem;
    font-size: 0.98rem;
    gap: 0.7rem;
  }
  .cookie-btn {
    width: 100%;
    padding: 0.7em 0;
    font-size: 1rem;
  }
} 

.valores-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 2.5rem;
  margin: 2.2rem 0 1.5rem 0;
  justify-items: center;
  align-items: stretch;
}
@media (max-width: 900px) {
  .valores-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
  }
}
@media (max-width: 700px) {
  .valores-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .valor-card {
    min-height: 90px;
    padding: 1.1rem 0.5rem 0.8rem 0.5rem;
  }
  .valor-icono {
    font-size: 1.5rem;
  }
  .valor-titulo {
    font-size: 1rem;
  }
}
.valor-card {
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(56,212,174,0.10), 0 2px 8px rgba(0,0,0,0.04);
  border: 2.5px solid #38D4AE;
  padding: 0.7rem 0.5rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, transform 0.3s, border 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  height: 100%;
  min-width: 110px;
  max-width: 150px;
  cursor: default;
}
.valor-card:hover {
  box-shadow: 0 16px 40px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.13);
  border: 2.5px solid #000F9F;
  transform: translateY(-6px) scale(1.04);
}
.valor-icono {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: #38D4AE;
  filter: drop-shadow(0 2px 8px rgba(56,212,174,0.10));
}
.valor-titulo {
  color: #000F9F;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}
@media (max-width: 700px) {
  .valores-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .valor-card {
    min-height: 90px;
    padding: 1.1rem 0.5rem 0.8rem 0.5rem;
  }
  .valor-icono {
    font-size: 1.5rem;
  }
  .valor-titulo {
    font-size: 1rem;
  }
} 

.valores-titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 1.7rem;
  margin-top: 1.2rem;
  gap: 0.7rem;
  background: none;
}
.valores-ico {
  font-size: 1.5rem;
  color: #38D4AE;
  filter: drop-shadow(0 2px 8px rgba(56,212,174,0.10));
}
.valores-texto {
  background: linear-gradient(90deg, #000F9F 60%, #38D4AE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 1px;
} 

.modal-area {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 6000;
  background: rgba(0,15,159,0.18);
  align-items: center;
  justify-content: center;
  animation: modal-fadein 0.3s;
}
.modal-area[style*="display: flex"] {
  display: flex !important;
}
.modal-area-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(56,212,174,0.13), 0 2px 8px rgba(0,0,0,0.10);
  padding: 2.5rem 2.2rem 2rem 2.2rem;
  max-width: 420px;
  width: 92vw;
  position: relative;
  text-align: center;
  border: 2.5px solid #38D4AE;
  animation: modal-pop 0.4s cubic-bezier(0.4,0.2,0.2,1);
}
.modal-area-content h2 {
  color: #000F9F;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.modal-area-content p {
  color: #58595B;
  font-size: 1.08rem;
  line-height: 1.6;
}
.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #38D4AE;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 2;
}
.modal-close:hover, .modal-close:focus {
  color: #000F9F;
  transform: scale(1.18);
}
@keyframes modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .modal-area-content {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    max-width: 98vw;
  }
  .modal-area-content h2 {
    font-size: 1.1rem;
  }
  .modal-area-content p {
    font-size: 0.98rem;
  }
} 

.modal-residencial .modal-area-content {
  border-color: #38D4AE;
  box-shadow: 0 8px 32px rgba(56,212,174,0.18), 0 2px 8px rgba(0,0,0,0.10);
}
.modal-residencial .modal-area-content h2 {
  color: #38D4AE;
}
.modal-residencial .modal-close {
  color: #38D4AE;
}
.modal-comercial .modal-area-content {
  border-color: #000F9F;
  box-shadow: 0 8px 32px rgba(0,15,159,0.18), 0 2px 8px rgba(56,212,174,0.10);
}
.modal-comercial .modal-area-content h2 {
  color: #000F9F;
}
.modal-comercial .modal-close {
  color: #000F9F;
}
.modal-industrial .modal-area-content {
  border-image: linear-gradient(90deg, #000F9F, #38D4AE) 1;
  box-shadow: 0 8px 32px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.18);
}
.modal-industrial .modal-area-content h2 {
  background: linear-gradient(90deg, #000F9F 60%, #38D4AE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.modal-industrial .modal-close {
  color: #000F9F;
}
.modal-area-content {
  animation: modal-bounce 0.6s cubic-bezier(0.4,1.4,0.6,1);
}
@keyframes modal-bounce {
  0% { opacity: 0; transform: scale(0.7) translateY(80px); }
  60% { opacity: 1; transform: scale(1.08) translateY(-12px); }
  80% { transform: scale(0.98) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
} 

.modal-legal .modal-area-content {
  border-color: #000F9F;
  box-shadow: 0 8px 32px rgba(0,15,159,0.13), 0 2px 8px rgba(56,212,174,0.18);
}
.modal-legal .modal-area-content h2 {
  color: #000F9F;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.modal-legal .modal-close {
  color: #000F9F;
}

/* Carrusel de áreas de proyectos */
.area-carrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  min-height: 180px;
  margin-bottom: 1.2rem;
}
.area-carrusel-imagenes {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #e0eefa;
}
.carrusel-img-area {
  width: 100%;
  height: 180px;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  border-radius: 18px;
}
.carrusel-img-area.activa {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.carrusel-btn {
  background: linear-gradient(90deg, #000F9F, #38D4AE);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  margin: 0 0.5rem;
  box-shadow: 0 2px 8px rgba(56,212,174,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  outline: none;
  z-index: 3;
}
.carrusel-btn:hover, .carrusel-btn:focus {
  background: linear-gradient(90deg, #38D4AE, #000F9F);
  transform: scale(1.13);
}
@media (max-width: 700px) {
  .area-carrusel-imagenes, .carrusel-img-area {
    height: 120px;
  }
  .carrusel-btn {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
}

.onda-inicio {
  width: 100vw;
  min-width: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 2;
  line-height: 0;
  left: 0;
  bottom: 0;
  pointer-events: none;
}
.onda-inicio svg {
  display: block;
  width: 100vw;
  min-width: 100%;
  height: 120px;
}
.rectangulo-blanco {
  width: 100vw;
  min-width: 100%;
  height: 80px;
  background: #fff;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

#inicio::after {
  display: none !important;
}

/* --- MEJORAS RESPONSIVAS PARA MÓVIL --- */
@media (max-width: 700px) {
  body, html {
    background: #f8fafc !important;
    width: 100vw;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  main, .navbar-container, .footer, .footer-main, .footer-bottom {
    width: 100vw !important;
    min-width: 0;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  .inicio, .inicio-bg, .inicio-info-bg {
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .ofertas-trabajo-grid {
    flex-direction: column !important;
    gap: 1.2rem !important;
    align-items: center !important;
  }
  .oferta-trabajo-card {
    max-width: 95vw !important;
    min-width: 0;
  }
  .valores-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .valor-card {
    min-width: 0;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .whatsapp-float, .scroll-top {
    right: 1.1rem !important;
    bottom: 1.1rem !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    z-index: 3000 !important;
  }
  .scroll-top {
    bottom: 4.5rem !important;
    right: 1.1rem !important;
  }
  .footer-main {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }
  .footer-col {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .inicio {
    flex-direction: column !important;
    min-height: unset !important;
    padding-top: 80px !important;
    padding-bottom: 30px !important;
    background-position: center !important;
    background-size: cover !important;
  }
  .inicio-info-bg {
    background: rgba(30, 40, 60, 0.92) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 24px rgba(0,15,159,0.10) !important;
    padding: 1.5rem 1rem 1.2rem 1rem !important;
    margin: 0 auto !important;
    max-width: 97vw !important;
    width: 97vw !important;
    min-width: 0 !important;
    position: static !important;
  }
  .inicio-info-bg img.logo-agp {
    width: 120px !important;
    height: auto !important;
    margin-bottom: 1.2rem !important;
    margin-top: 0 !important;
  }
  .bienvenida {
    font-size: 1.08rem !important;
    line-height: 1.5 !important;
    color: #fff !important;
    text-align: left !important;
    margin-bottom: 1.2rem !important;
    margin-top: 0 !important;
  }
  .inicio-btn {
    font-size: 1rem !important;
    padding: 0.7rem 1.5rem !important;
    margin: 0 auto !important;
    display: block !important;
  }
  .onda-inicio {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .valores-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.7rem !important;
    padding: 0 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .valor-card {
    font-size: 0.98rem !important;
    padding: 0.7rem 0.3rem !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .valor-icono {
    font-size: 1.5rem !important;
    margin-bottom: 0.3rem !important;
  }
  .valor-titulo {
    font-size: 1rem !important;
  }
}

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.whatsapp-float {
  position: fixed;
  right: 2.1rem;
  bottom: 1.5rem;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #25D366 60%, #128C7E 100%);
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(56,212,174,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 3px solid #fff;
}
.whatsapp-float:hover, .whatsapp-float:focus {
  box-shadow: 0 8px 32px rgba(56,212,174,0.28);
  transform: scale(1.08);
}
.whatsapp-icon-bg svg {
  width: 38px;
  height: 38px;
}

/* --- BOTÓN SCROLL TOP --- */
.scroll-top {
  position: fixed;
  right: 2.1rem;
  bottom: 6.5rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #000F9F 60%, #38D4AE 100%);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,15,159,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2999;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.scroll-top:hover, .scroll-top:focus {
  box-shadow: 0 6px 18px rgba(0,15,159,0.18);
  transform: scale(1.10);
  background: linear-gradient(135deg, #38D4AE 60%, #000F9F 100%);
}
.scroll-top svg {
  width: 26px;
  height: 26px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .whatsapp-float {
    width: 54px !important;
    height: 54px !important;
    right: 1.1rem !important;
    bottom: 1.1rem !important;
  }
  .scroll-top {
    width: 38px !important;
    height: 38px !important;
    right: 1.1rem !important;
    bottom: 4.7rem !important;
    font-size: 1.2rem !important;
  }
  .whatsapp-icon-bg svg {
    width: 30px !important;
    height: 30px !important;
  }
  .scroll-top svg {
    width: 20px !important;
    height: 20px !important;
  }
}