/* ==========================================================
   AREA CALIDAD
   CSS GLOBAL COMPARTIDO
   Versión limpia y responsive
   ========================================================== */

:root {
  --azul-noche: #071523;
  --azul-oscuro: #0b1f33;
  --azul-medio: #163a5f;
  --azul-corporativo: #008ee6;
  --azul-profundo: #07519a;
  --verde-corporativo: #72df00;
  --verde-profundo: #32a800;
  --blanco: #ffffff;
  --gris-claro: #d7dde3;
  --gris-texto: #9aa6b2;
  --gris-fondo: #0b1722;
  --borde: rgba(255, 255, 255, 0.10);
  --borde-fuerte: rgba(255, 255, 255, 0.16);
  --sombra: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radio: 18px;
  --transicion: 0.25s ease;
  --ancho-maximo: 1180px;
  --altura-header: 104px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--blanco);
  background: var(--azul-noche);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-abierto {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.contenedor {
  width: min(var(--ancho-maximo), calc(100% - 48px));
  margin-inline: auto;
}

/* ==========================================================
   HEADER
   ========================================================== */

.cabecera {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  min-height: var(--altura-header);
  background: rgba(7, 21, 35, 0.88);
  border-bottom: 1px solid var(--borde);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navegacion {
  min-height: var(--altura-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.marca {
  min-width: 320px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.marca-logo {
  width: 70px;
  height: 70px;
  flex: 0 0 92px;
  object-fit: contain;
}

.marca-texto {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.marca-texto strong {
  color: var(--blanco);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.marca-texto small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.70rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.menu-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(17px, 2vw, 29px);
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.menu-principal a {
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
  transition: color var(--transicion);
}

.menu-principal a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--azul-corporativo), var(--verde-corporativo));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transicion);
}

.menu-principal a:hover,
.menu-principal a:focus-visible,
.menu-principal a.activo {
  color: var(--blanco);
}

.menu-principal a:hover::after,
.menu-principal a:focus-visible::after,
.menu-principal a.activo::after {
  transform: scaleX(1);
}

.acciones-cabecera {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
}

.redes-sociales {
  display: flex;
  align-items: center;
  gap: 9px;
}

.redes-sociales a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;

  border: 1px solid var(--borde-fuerte);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  transition:
    transform var(--transicion),
    border-color var(--transicion),
    background var(--transicion);
}

.redes-sociales a:hover,
.redes-sociales a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(114, 223, 0, 0.62);
  background: rgba(114, 223, 0, 0.08);
}

.redes-sociales img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.boton-menu {
  width: 46px;
  height: 46px;
  display: none;
  flex: 0 0 46px;
  padding: 0;
  border: 1px solid var(--borde-fuerte);
  border-radius: 12px;
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.boton-menu span {
  width: 21px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform var(--transicion), opacity var(--transicion);
}

.boton-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.boton-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.boton-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--altura-header) + 72px) 0 90px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 28%, rgba(0, 142, 230, 0.16), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(114, 223, 0, 0.10), transparent 24%),
    linear-gradient(110deg, #06111d 0%, #081a2a 47%, #0c2941 100%);
}

.hero-fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  right: -14vw;
  top: 16%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(0, 142, 230, 0.025),
    0 0 0 160px rgba(114, 223, 0, 0.018);
  pointer-events: none;
}

.hero-contenido {
  width: 100%;
  padding-left: clamp(18px, 3vw, 42px);
  padding-right: 20px;
}

.hero-texto {
  width: 100%;
  max-width: 780px;
}

.hero-etiqueta,
.etiqueta-seccion {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b8f27c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-etiqueta::before,
.etiqueta-seccion::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--azul-corporativo), var(--verde-corporativo));
}

.hero h1 {
  max-width: 900px;
  margin-top: 22px;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #93cbf5 44%, #8ae717 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero p {
  max-width: 680px;
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.70);
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.7;
}

.hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.boton {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion), background var(--transicion);
}

.boton:hover,
.boton:focus-visible {
  transform: translateY(-2px);
}

.boton-principal {
  color: #06111d;
  background: linear-gradient(135deg, var(--verde-corporativo), #9af12d);
  box-shadow: 0 13px 34px rgba(114, 223, 0, 0.18);
}

.boton-secundario {
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.boton-secundario:hover,
.boton-secundario:focus-visible {
  border-color: rgba(0, 142, 230, 0.65);
  background: rgba(0, 142, 230, 0.09);
}

.hero-bajar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 30px;
  height: 48px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  transform: translateX(-50%);
}

.hero-bajar span {
  width: 4px;
  height: 9px;
  border-radius: 99px;
  background: var(--verde-corporativo);
  animation: bajar 1.7s ease-in-out infinite;
}

@keyframes bajar {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(19px);
    opacity: 1;
  }
}

/* ==========================================================
   PRESENTACIÓN HOME
   ========================================================== */

.presentacion {
  padding: clamp(72px, 9vw, 115px) 0;
  color: var(--azul-oscuro);
  background: #f4f7f9;
}

.presentacion-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  gap: clamp(38px, 7vw, 90px);
}

.presentacion h2 {
  margin-top: 15px;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.presentacion p {
  color: #5d6875;
  font-size: 1.08rem;
}

.etiqueta-seccion {
  color: var(--azul-profundo);
}

/* ==========================================================
   FOOTER
   ========================================================== */

.pie {
  padding: 64px 0 22px;
  color: rgba(255, 255, 255, 0.66);
  background: #050e16;
  border-top: 1px solid var(--borde);
}

.pie-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr 1.35fr;
  align-items: start;
  gap: clamp(34px, 6vw, 78px);
}

.marca-footer {
  min-width: 0;
  color: var(--blanco);
}

.pie-contacto {
  display: grid;
  gap: 4px;
  margin-top: 23px;
  font-size: 0.92rem;
}

.pie-contacto a:hover,
.pie-legal a:hover {
  color: var(--verde-corporativo);
}

.pie h2 {
  margin-bottom: 17px;
  color: var(--blanco);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pie-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
}

.mapa-contenedor {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: #0b1722;
  box-shadow: var(--sombra);
}

.mapa-contenedor iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: grayscale(1) invert(0.88) contrast(0.86);
}

.pie-inferior {
  min-height: 68px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--borde);
  font-size: 0.79rem;
}

.pie-redes {
  display: none;
}

/* ==========================================================
   ACCESIBILIDAD
   ========================================================== */

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(114, 223, 0, 0.45);
  outline-offset: 4px;
}

/* ==========================================================
   RESPONSIVE TABLET
   ========================================================== */

@media (max-width: 1040px) {
  :root {
    --altura-header: 92px;
  }

  .contenedor {
    width: min(var(--ancho-maximo), calc(100% - 40px));
  }

  .navegacion {
    position: relative;
    gap: 14px;
  }

  .marca {
    min-width: 0;
    max-width: calc(100% - 60px);
    flex: 1 1 auto;
  }

  .marca-logo {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }

  .marca-texto {
    flex: 1 1 auto;
  }

  .marca-texto small {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .acciones-cabecera > .redes-sociales {
    display: none;
  }

  .boton-menu {
    display: block;
    position: relative;
    z-index: 1101;
  }

  .menu-principal {
    position: fixed;
    top: var(--altura-header);
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100svh - var(--altura-header));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 18px 4% 28px;
    overflow-y: auto;
    background: rgba(5, 16, 27, 0.985);
    border-bottom: 1px solid var(--borde);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1100;
    transition: transform 0.30s ease, opacity 0.30s ease, visibility 0.30s ease;
  }

  .menu-principal.abierto {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .menu-principal a {
    width: 100%;
    padding: 17px 3px;
    border-bottom: 1px solid var(--borde);
    font-size: 1rem;
  }

  .menu-principal a::after {
    display: none;
  }

  .presentacion-grid,
  .pie-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pie-mapa {
    grid-column: 1 / -1;
  }

  .mapa-contenedor {
    height: 240px;
  }
}

/* ==========================================================
   RESPONSIVE MÓVIL
   ========================================================== */

@media (max-width: 720px) {
  :root {
    --altura-header: 80px;
  }

  .contenedor {
    width: calc(100% - 28px);
  }

  .navegacion {
    gap: 8px;
  }

  .marca {
    max-width: calc(100% - 54px);
    gap: 9px;
  }

  .marca-logo {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .marca-texto strong {
    font-size: 0.92rem;
    letter-spacing: 0.045em;
  }

  .marca-texto small {
    max-width: 165px;
    margin-top: 4px;
    font-size: 0.60rem;
    letter-spacing: 0.025em;
  }

  .boton-menu {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--altura-header) + 58px);
    padding-bottom: 82px;
  }

  .hero-contenido {
    width: 100%;
    padding-right: 4px;
    padding-left: 4px;
  }

  .hero-texto {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12vw, 4.3rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
  }

  .hero p {
    max-width: 100%;
    margin-top: 30px;
    line-height: 1.65;
  }

  .hero-acciones {
    width: 100%;
    flex-direction: column;
  }

  .hero-acciones .boton {
    width: 100%;
  }

  .hero::before {
    width: 390px;
    right: -280px;
    top: 25%;
  }

  .presentacion-grid,
  .pie-grid {
    grid-template-columns: 1fr;
  }

  .pie-mapa {
    grid-column: auto;
  }

  .pie {
    padding-top: 52px;
  }

  .mapa-contenedor {
    height: 220px;
  }

  .pie-inferior {
    align-items: flex-start;
    flex-direction: column;
  }

  .pie-redes {
    display: flex;
  }
}

/* ==========================================================
   MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 430px) {
  .marca-logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .marca-texto strong {
    font-size: 0.84rem;
  }

  .marca-texto small {
    display: none;
  }

  .hero-etiqueta {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12.5vw, 3.3rem);
  }
}
@media (min-width: 1041px) {
  .hero-fondo {
    background-image:
      linear-gradient(
        90deg,
        rgba(4, 15, 25, .96) 0%,
        rgba(5, 22, 36, .88) 48%,
        rgba(5, 29, 45, .50) 100%
      ),
      url("../imagenes/ciclo.png");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ==========================================================
   PÁGINAS LEGALES
   ========================================================== */

.legal {
  min-height: 100vh;

  padding:
    calc(var(--altura-header) + 70px)
    0
    100px;

  color: var(--azul-oscuro);

  background:
    linear-gradient(
      180deg,
      #eef4f7 0%,
      #ffffff 38%,
      #f4f7f9 100%
    );
}

.legal-contenido {
  max-width: 920px;
}

.legal-cabecera {
  margin-bottom: 48px;
  padding-bottom: 34px;

  border-bottom: 1px solid #dce5ea;
}

.legal-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--azul-profundo);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.legal-etiqueta::before {
  content: "";

  width: 28px;
  height: 2px;

  border-radius: 99px;

  background: linear-gradient(
    90deg,
    var(--azul-corporativo),
    var(--verde-corporativo)
  );
}

.legal-cabecera h1 {
  margin-top: 15px;

  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;

  color: var(--azul-oscuro);
}

.legal-cabecera > p {
  max-width: 720px;

  margin-top: 20px;

  color: #66727e;

  font-size: 1.08rem;
  line-height: 1.75;
}

.legal-bloque {
  margin-top: 38px;
}

.legal-bloque h2 {
  position: relative;

  margin-bottom: 14px;
  padding-left: 18px;

  color: var(--azul-oscuro);

  font-size: 1.28rem;
  line-height: 1.35;
}

.legal-bloque h2::before {
  content: "";

  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;

  width: 4px;

  border-radius: 99px;

  background: linear-gradient(
    180deg,
    var(--azul-corporativo),
    var(--verde-corporativo)
  );
}

.legal-bloque p {
  margin-top: 12px;

  color: #5d6875;

  font-size: 0.98rem;
  line-height: 1.85;
}

.legal-bloque strong {
  color: var(--azul-profundo);
}

.legal-bloque ul {
  margin: 18px 0 0 22px;
}

.legal-bloque li {
  margin-top: 8px;

  padding-left: 4px;

  color: #5d6875;

  line-height: 1.7;
}

.legal-bloque li::marker {
  color: var(--verde-profundo);
}

.legal-aviso {
  margin-top: 52px;
  padding: 24px 26px;

  border:
    1px solid rgba(0, 142, 230, 0.18);

  border-left:
    4px solid var(--verde-corporativo);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(0, 142, 230, 0.06),
      rgba(114, 223, 0, 0.06)
    );
}

.legal-aviso strong {
  display: block;

  margin-bottom: 6px;

  color: var(--azul-profundo);

  font-size: 0.88rem;
  letter-spacing: 0.06em;

  text-transform: uppercase;
}

.legal-aviso p {
  color: #66727e;

  font-size: 0.9rem;
  line-height: 1.7;
}


/* Responsive páginas legales */

@media (max-width: 720px) {

  .legal {
    padding:
      calc(var(--altura-header) + 48px)
      0
      72px;
  }

  .legal-cabecera {
    margin-bottom: 36px;
    padding-bottom: 26px;
  }

  .legal-cabecera h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .legal-bloque {
    margin-top: 31px;
  }

  .legal-bloque h2 {
    font-size: 1.16rem;
  }

  .legal-aviso {
    padding: 20px;
  }
}

/* ==========================================================
   PÁGINA SERVICIOS
   ========================================================== */

.servicios-pagina {
  min-height: 100vh;
  padding:
    calc(var(--altura-header) + 72px)
    0
    100px;

  color: var(--azul-oscuro);

  background:
    linear-gradient(
      180deg,
      #edf4f7 0%,
      #ffffff 36%,
      #f4f7f9 100%
    );
}


/* CABECERA */

.servicios-intro {
  max-width: 900px;
  margin-bottom: 54px;
}

.servicios-intro h1 {
  margin-top: 16px;

  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.servicios-intro h1 span {
  display: block;

  color: var(--azul-profundo);
}

.servicios-intro > p {
  max-width: 760px;

  margin-top: 24px;

  color: #5d6875;

  font-size: 1.08rem;
  line-height: 1.8;
}


/* ACORDEÓN */

.servicio-item {
  margin-top: 16px;

  overflow: hidden;

  border: 1px solid #dce5ea;
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 12px 32px rgba(11, 31, 51, 0.06);

  transition:
    border-color var(--transicion),
    box-shadow var(--transicion),
    transform var(--transicion);
}

.servicio-item:hover {
  transform: translateY(-2px);

  border-color:
    rgba(0, 142, 230, 0.28);

  box-shadow:
    0 18px 42px rgba(11, 31, 51, 0.10);
}


/* CABECERA DE CADA SERVICIO */

.servicio-titulo {
  width: 100%;
  min-height: 108px;

  display: grid;
  grid-template-columns: 72px 1fr 48px;
  align-items: center;
  gap: 22px;

  padding: 22px 26px;

  border: 0;

  color: var(--azul-oscuro);
  background: transparent;

  text-align: left;

  cursor: pointer;
}

.servicio-numero {
  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  color: var(--azul-oscuro);

  background:
    linear-gradient(
      135deg,
      rgba(0, 142, 230, 0.12),
      rgba(114, 223, 0, 0.16)
    );

  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.servicio-nombre {
  display: flex;
  flex-direction: column;

  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.servicio-nombre small {
  margin-bottom: 5px;

  color: var(--azul-profundo);

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.servicio-icono {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  justify-self: end;

  border: 1px solid #d9e4ea;
  border-radius: 50%;

  color: var(--azul-profundo);

  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}


/* DETALLE OCULTO */

.servicio-detalle {
  display: grid;

  grid-template-rows: 0fr;

  transition:
    grid-template-rows 0.35s ease;
}

.servicio-detalle-interior {
  overflow: hidden;

  padding:
    0
    26px
    0
    120px;

  transition:
    padding 0.35s ease;
}


/* SERVICIO ABIERTO */

.servicio-item.abierto {
  border-color:
    rgba(0, 142, 230, 0.30);

  box-shadow:
    0 20px 48px rgba(11, 31, 51, 0.11);
}

.servicio-item.abierto .servicio-detalle {
  grid-template-rows: 1fr;
}

.servicio-item.abierto .servicio-detalle-interior {
  padding:
    0
    26px
    32px
    120px;
}

.servicio-item.abierto .servicio-icono {
  transform: rotate(45deg);

  color: var(--azul-oscuro);

  border-color:
    rgba(114, 223, 0, 0.40);

  background:
    rgba(114, 223, 0, 0.10);
}


/* CONTENIDO DEL SERVICIO */

.servicio-destacado {
  max-width: 760px;

  color: var(--azul-oscuro);

  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.65;
}

.servicio-detalle-interior > p:not(.servicio-destacado) {
  max-width: 800px;

  margin-top: 14px;

  color: #5d6875;

  line-height: 1.8;
}

.servicio-detalle-interior ul {
  margin-top: 22px;

  display: grid;
  gap: 10px;

  list-style: none;
}

.servicio-detalle-interior li {
  position: relative;

  padding-left: 24px;

  color: #5d6875;

  line-height: 1.65;
}

.servicio-detalle-interior li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0.72em;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--azul-corporativo),
      var(--verde-corporativo)
    );
}


/* CIERRE */

.servicios-cierre {
  margin-top: 70px;
  padding: 38px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;

  color: var(--blanco);

  background:
    linear-gradient(
      135deg,
      var(--azul-oscuro),
      var(--azul-medio)
    );

  box-shadow: var(--sombra);
}

.servicios-cierre > div {
  max-width: 730px;
}

.servicios-cierre h2 {
  margin-top: 12px;

  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.servicios-cierre p {
  margin-top: 16px;

  color: rgba(255, 255, 255, 0.72);

  line-height: 1.75;
}

.servicios-cierre .etiqueta-seccion {
  color: #b8f27c;
}

.servicios-cierre .boton {
  flex: 0 0 auto;
}


/* ==========================================================
   RESPONSIVE SERVICIOS
   ========================================================== */

@media (max-width: 720px) {

  .servicios-pagina {
    padding:
      calc(var(--altura-header) + 48px)
      0
      72px;
  }

  .servicios-intro {
    margin-bottom: 38px;
  }

  .servicios-intro h1 {
    font-size:
      clamp(2.45rem, 11vw, 3.6rem);
  }

  .servicio-titulo {
    min-height: 94px;

    grid-template-columns:
      48px
      1fr
      38px;

    gap: 13px;

    padding: 18px 16px;
  }

  .servicio-numero {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    font-size: 0.82rem;
  }

  .servicio-nombre {
    font-size: 1rem;
  }

  .servicio-nombre small {
    font-size: 0.62rem;
  }

  .servicio-icono {
    width: 36px;
    height: 36px;

    font-size: 1.3rem;
  }

  .servicio-detalle-interior {
    padding:
      0
      18px
      0
      18px;
  }

  .servicio-item.abierto .servicio-detalle-interior {
    padding:
      0
      18px
      25px
      18px;
  }

  .servicio-destacado {
    font-size: 1rem;
  }

  .servicios-cierre {
    margin-top: 52px;
    padding: 28px 22px;

    flex-direction: column;
    align-items: flex-start;
  }

  .servicios-cierre .boton {
    width: 100%;
  }
}

/* ==========================================================
   PÁGINA QUIÉNES SOMOS
   ========================================================== */

.quienes-pagina {
  min-height: 100vh;
  padding:
    calc(var(--altura-header) + 72px)
    0
    100px;

  color: var(--azul-oscuro);

  background:
    linear-gradient(
      180deg,
      #eef4f7 0%,
      #ffffff 42%,
      #f4f7f9 100%
    );
}

.quienes-contenido {
  max-width: 1050px;
}


/* CABECERA */

.quienes-intro {
  max-width: 880px;
  margin-bottom: 58px;
}

.quienes-intro h1 {
  margin-top: 16px;

  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.quienes-intro h1 span {
  display: block;

  color: var(--azul-profundo);
}

.quienes-intro > p {
  max-width: 760px;

  margin-top: 24px;

  color: #5d6875;

  font-size: 1.08rem;
  line-height: 1.8;
}


/* BLOQUES PRINCIPALES */

.quienes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quienes-bloque {
  position: relative;

  padding: 32px 28px;

  border: 1px solid #dce5ea;
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 12px 32px rgba(11, 31, 51, 0.06);
}

.quienes-numero {
  display: inline-block;

  margin-bottom: 22px;

  color: var(--azul-corporativo);

  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.quienes-bloque h2 {
  margin-bottom: 16px;

  color: var(--azul-oscuro);

  font-size: 1.35rem;
  line-height: 1.25;
}

.quienes-bloque p {
  margin-top: 12px;

  color: #5d6875;

  line-height: 1.8;
}


/* DECLARACIÓN FINAL */

.quienes-declaracion {
  margin-top: 70px;
  padding: 42px;

  border-radius: 22px;

  color: var(--blanco);

  background:
    linear-gradient(
      135deg,
      var(--azul-oscuro),
      var(--azul-medio)
    );

  box-shadow: var(--sombra);
}

.quienes-declaracion .etiqueta-seccion {
  color: #b8f27c;
}

.quienes-declaracion blockquote {
  margin-top: 18px;
}

.quienes-declaracion blockquote p {
  max-width: 820px;

  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.quienes-declaracion blockquote strong {
  display: block;

  margin-top: 22px;

  color: var(--verde-corporativo);

  font-size: 1rem;
  letter-spacing: 0.08em;
}


/* ==========================================================
   RESPONSIVE QUIÉNES SOMOS
   ========================================================== */

@media (max-width: 900px) {
  .quienes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quienes-pagina {
    padding:
      calc(var(--altura-header) + 48px)
      0
      72px;
  }

  .quienes-intro {
    margin-bottom: 40px;
  }

  .quienes-intro h1 {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
  }

  .quienes-bloque {
    padding: 26px 22px;
  }

  .quienes-declaracion {
    margin-top: 52px;
    padding: 30px 24px;
  }

  .quienes-declaracion blockquote p {
    font-size: 1.45rem;
  }
}

/* ==========================================================
   PÁGINA CONTACTO
   ========================================================== */

.contacto-pagina {
  min-height: 100vh;

  padding:
    calc(var(--altura-header) + 72px)
    0
    100px;

  color: var(--azul-oscuro);

  background:
    linear-gradient(
      180deg,
      #edf4f7 0%,
      #ffffff 40%,
      #f4f7f9 100%
    );
}

.contacto-contenido {
  max-width: 1100px;
}


/* CABECERA */

.contacto-intro {
  max-width: 850px;
  margin-bottom: 55px;
}

.contacto-intro h1 {
  margin-top: 16px;

  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.contacto-intro h1 span {
  display: block;

  color: var(--azul-profundo);
}

.contacto-intro > p {
  max-width: 720px;

  margin-top: 22px;

  color: #5d6875;

  font-size: 1.08rem;
  line-height: 1.8;
}


/* GRID */

.contacto-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  gap: clamp(40px, 7vw, 80px);

  align-items: start;
}


/* INFORMACIÓN */

.contacto-info {
  padding-top: 20px;
}

.contacto-info h2 {
  margin-bottom: 16px;

  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.contacto-info > p {
  color: #5d6875;

  line-height: 1.8;
}

.contacto-garantias {
  display: grid;
  gap: 22px;

  margin-top: 36px;
}

.contacto-garantia {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
}

.contacto-garantia > span {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--azul-oscuro);

  background:
    linear-gradient(
      135deg,
      var(--azul-corporativo),
      var(--verde-corporativo)
    );

  font-weight: 900;
}

.contacto-garantia strong {
  color: var(--azul-oscuro);
}

.contacto-garantia p {
  margin-top: 4px;

  color: #697580;

  font-size: 0.92rem;
  line-height: 1.6;
}


/* FORMULARIO */

.formulario-contacto {
  padding: 34px;

  border: 1px solid #dce5ea;
  border-radius: 22px;

  background: var(--blanco);

  box-shadow:
    0 18px 50px rgba(11, 31, 51, 0.10);
}

.formulario-contacto > h2 {
  font-size: 1.55rem;
}

.formulario-intro {
  margin-top: 7px;
  margin-bottom: 27px;

  color: #7b858f;

  font-size: 0.88rem;
}

.formulario-intro span,
.campo label > span,
.campo-check label > span {
  color: #c63c3c;
}


/* CAMPOS */

.campo {
  margin-bottom: 21px;
}

.campo label {
  display: block;

  margin-bottom: 7px;

  color: var(--azul-oscuro);

  font-size: 0.87rem;
  font-weight: 800;
}

.campo label small {
  color: #87919b;

  font-size: 0.75rem;
  font-weight: 400;
}

.campo input,
.campo textarea {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid #d4dde3;
  border-radius: 11px;

  color: var(--azul-oscuro);
  background: #fbfcfd;

  outline: none;

  transition:
    border-color var(--transicion),
    box-shadow var(--transicion),
    background var(--transicion);
}

.campo textarea {
  min-height: 145px;

  resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
  border-color: var(--azul-corporativo);

  background: var(--blanco);

  box-shadow:
    0 0 0 4px rgba(0, 142, 230, 0.10);
}


/* ESTADOS ERRÓNEOS */

.campo input.campo-invalido,
.campo textarea.campo-invalido {
  border-color: #ba3d3d;

  box-shadow:
    0 0 0 3px rgba(186, 61, 61, 0.08);
}

.campo-ayuda {
  display: block;

  margin-top: 5px;

  color: #89939c;

  font-size: 0.72rem;
}

.campo-error {
  min-height: 18px;

  display: block;

  margin-top: 5px;

  color: #a92828;

  font-size: 0.75rem;
}


/* CONTADOR */

.contador-caracteres {
  margin-top: 5px;

  color: #8b959e;

  font-size: 0.72rem;

  text-align: right;
}


/* CHECKBOX */

.campo-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;

  align-items: start;

  margin-top: 18px;
}

.campo-check input {
  width: 18px;
  height: 18px;

  margin-top: 3px;

  accent-color: var(--verde-profundo);
}

.campo-check label {
  color: #5d6875;

  font-size: 0.84rem;
  line-height: 1.55;
}

.campo-check a {
  color: var(--azul-profundo);

  font-weight: 700;

  text-decoration: underline;
  text-underline-offset: 3px;
}


/* HONEYPOT */

.campo-trampa {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  clip: rect(0 0 0 0);

  white-space: nowrap;

  clip-path: inset(50%);
}


/* AVISO */

.formulario-aviso {
  min-height: 22px;

  margin-top: 20px;

  font-size: 0.84rem;
  font-weight: 700;
}

.formulario-aviso.error {
  color: #a92828;
}


/* BOTÓN */

.boton-enviar {
  width: 100%;

  margin-top: 7px;

  border: 0;

  cursor: pointer;
}

.boton-enviar:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;
}


/* NOTA LEGAL */

.formulario-legal {
  margin-top: 14px;

  color: #89939c;

  font-size: 0.72rem;
  line-height: 1.55;

  text-align: center;
}


/* ==========================================================
   RESPONSIVE CONTACTO
   ========================================================== */

@media (max-width: 850px) {

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    padding-top: 0;
  }

}


@media (max-width: 720px) {

  .contacto-pagina {
    padding:
      calc(var(--altura-header) + 48px)
      0
      72px;
  }

  .contacto-intro {
    margin-bottom: 38px;
  }

  .contacto-intro h1 {
    font-size:
      clamp(2.45rem, 11vw, 3.6rem);
  }

  .formulario-contacto {
    padding: 25px 20px;
  }
/* ==========================================================
   IFRAME
   ========================================================== */
}
.mapa-contenedor {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 16px;
}

.mapa-contenedor iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================
   CORRECCIÓN REDES FOOTER · TABLET
   ========================================================== */

@media (min-width: 721px) and (max-width: 1040px) {

  .pie-redes {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .pie-redes a {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--borde-fuerte);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);
  }

  .pie-redes img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

}

.telefono-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.whatsapp-link {
  display: inline-flex;
  align-items: center;
}

.whatsapp-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.correo-icono {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.correo-link {
  display: inline-flex;
  align-items: center;
}

.correo-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.mensaje-envio {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);

    line-height: 1.6;
}

.mensaje-envio strong {
    display: block;
    margin-bottom: 0.35rem;
}