:root {
  --azul-logo: #18a8dc;
  --azul-profundo: #0b5678;
  --azul-claro: #e9f8fd;
  --amarillo-logo: #f4c400;
  --verde-logo: #a8d332;
  --morado-logo: #a44fe0;
  --texto: #17394a;
  --texto-suave: #637985;
  --blanco: #ffffff;
  --gris-fondo: #f8fcfe;
  --linea: #d9edf5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2 {
  font-family: "Montserrat", Arial, sans-serif;
  margin-top: 0;
}

/* ENCABEZADO */

.header {
  width: 100%;
  min-height: 112px;
  background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 18px rgba(11, 86, 120, 0.1);
}

.contenedor {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
}

.menu-contenedor {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.logo-imagen {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}

.logo-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.logo-titulo {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #000000;
  white-space: nowrap;
}

.logo-subtitulo {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  color: #000000;
  text-align: center;
}

/* MENÚ */

.menu {
  display: flex;
  align-items: center;
  gap: 48px;
}

.menu a {
  position: relative;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--azul-profundo);
  padding: 45px 0;
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a.activo {
  color: var(--morado-logo);
}

.menu a::after {
  content: "";
  width: 0;
  height: 3px;
  background: var(--amarillo-logo);
  position: absolute;
  left: 0;
  bottom: 28px;
  transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.activo::after {
  width: 100%;
}

.menu-toggle,
.menu-hamburguesa {
  display: none;
}

/* PORTADA */

.hero {
  height: calc(100vh - 112px);
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;
}

.hero-fondo {
  position: absolute;
  inset: 0;

  

  background:
    radial-gradient(circle at 20% 25%, rgba(244, 196, 0, 0.9) 0 8%, transparent 8.5%),
    radial-gradient(circle at 80% 28%, rgba(168, 211, 50, 0.85) 0 9%, transparent 9.5%),
    radial-gradient(circle at 50% 80%, rgba(164, 79, 224, 0.7) 0 12%, transparent 12.5%),
    linear-gradient(135deg, var(--azul-logo), var(--azul-profundo));

  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 56, 78, 0.53);
}

.hero-contenido {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 40px));
  animation: aparecerHero 1.2s ease;
}

.subtitulo {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 18px;
}

.subtitulo.azul {
  color: var(--azul-logo);
}

.subtitulo.claro {
  color: #e9fbff;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-contenido p {
  max-width: 760px;
  margin: auto;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
}

.botones-hero {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

/* BOTONES */

.boton {
  min-width: 165px;
  border: 1px solid transparent;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  transition: 0.3s ease;
}

.boton:hover {
  transform: translateY(-4px) scale(1.02);
}

.boton-blanco {
  border-color: white;
  color: white;
}

.boton-blanco:hover {
  background: var(--amarillo-logo);
  color: var(--texto);
  border-color: var(--amarillo-logo);
}

.boton-azul {
  border: none;
  background: var(--azul-logo);
  color: white;
}

.boton-azul:hover {
  background: var(--morado-logo);
  box-shadow: 0 10px 24px rgba(164, 79, 224, 0.3);
}

/* SECCIONES */

.seccion {
  padding: 115px 0;
}

.grid-quienes,
.grid-mision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

h2 {
  color: var(--azul-profundo);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
}

.linea {
  width: 150px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--amarillo-logo),
    var(--verde-logo),
    var(--morado-logo)
  );
  margin: 25px 0 30px;
}

.linea-blanca {
  background: white;
  margin-left: auto;
  margin-right: auto;
}

.texto-quienes p,
.tarjeta p {
  color: var(--texto-suave);
  font-size: 1.07rem;
  margin-bottom: 20px;
}

/* FOTO QUIÉNES SOMOS */

.foto-quienes {
  min-height: 420px;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--amarillo-logo),
    var(--verde-logo),
    var(--morado-logo)
  );
}

.espacio-foto {
  width: 100%;
  min-height: 392px;

 

  background: linear-gradient(
    135deg,
    rgba(24, 168, 220, 0.9),
    rgba(164, 79, 224, 0.85)
  );

  background-size: cover;
  background-position: center;
  color: white;
  display: grid;
  place-items: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 20px;
}

/* MISIÓN Y VISIÓN */

.mision-vision {
  background: var(--azul-claro);
}

.grid-mision {
  align-items: stretch;
}

.tarjeta {
  background: white;
  padding: 48px 42px;
  box-shadow: 0 16px 38px rgba(11, 86, 120, 0.13);
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--verde-logo);
  transition: 0.35s ease;
}

.tarjeta:nth-child(2) {
  border-bottom-color: var(--morado-logo);
}

.tarjeta:hover {
  transform: translateY(-10px);
}

.tarjeta::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(168, 211, 50, 0.14);
  border-radius: 50%;
  right: -90px;
  bottom: -90px;
}

.tarjeta:nth-child(2)::after {
  background: rgba(164, 79, 224, 0.13);
}

.numero {
  font-family: "Montserrat", Arial, sans-serif;
  display: block;
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(24, 168, 220, 0.3);
  margin-bottom: 25px;
}

/* VALORES */

.valores {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(
    130deg,
    var(--azul-logo),
    var(--morado-logo),
    var(--azul-profundo)
  );
  background-size: cover;
  background-position: center;
  color: white;
}

.valores-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 54, 76, 0.45);
}

.contenido-valores {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
}

.contenido-valores h2 {
  color: white;
}

.lista-valores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.lista-valores span {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.3s ease;
}

.lista-valores span:hover {
  background: var(--amarillo-logo);
  color: var(--texto);
  transform: translateY(-4px);
}

/* PROPÓSITO */

.proposito {
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 196, 0, 0.35) 0 10%, transparent 10.5%),
    radial-gradient(circle at 84% 22%, rgba(168, 211, 50, 0.35) 0 11%, transparent 11.5%),
    radial-gradient(circle at 50% 92%, rgba(164, 79, 224, 0.35) 0 13%, transparent 13.5%),
    linear-gradient(130deg, var(--azul-profundo), var(--azul-logo));

  color: white;
  text-align: center;
  padding: 125px 20px;
  position: relative;
  overflow: hidden;
}

.proposito::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  top: -170px;
  left: -130px;
}

.proposito::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  bottom: -260px;
  right: -150px;
}

.contenido-proposito {
  max-width: 980px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.contenido-proposito h2 {
  color: white;
}

.texto-proposito {
  max-width: 900px;
  margin: auto;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.55;
}

/* FOOTER */

footer {
  background: var(--azul-profundo);
  color: white;
  padding: 45px 0 22px;
  border-top: 5px solid var(--amarillo-logo);
}

.footer-contenido {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
}

.logo-footer {
  gap: 10px;
}

.logo-footer-imagen {
  width: 62px;
  height: 62px;
  filter: none;
}

.logo-texto-footer .logo-titulo {
  color: white;
  font-size: 0.96rem;
}

.logo-texto-footer .logo-subtitulo {
  color: white;
  font-size: 0.8rem;
}

.footer-contenido p {
  color: #dff7ff;
  text-align: center;
  font-size: 0.87rem;
  margin: 0;
}

.subir {
  justify-self: end;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  transition: 0.3s ease;
}

.subir:hover {
  background: var(--morado-logo);
  border-color: var(--morado-logo);
  transform: translateY(-4px);
}

/* ANIMACIONES */

@keyframes aparecerHero {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(45px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animar {
  animation: aparecer 0.8s ease both;
  animation-timeline: view();
  animation-range: entry 10% cover 35%;
}

.retraso {
  animation-delay: 0.15s;
}

/* TABLET */

@media screen and (max-width: 950px) {
  .menu-hamburguesa {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px;
    gap: 5px;
    cursor: pointer;
  }

  .menu-hamburguesa span {
    width: 100%;
    height: 2px;
    background: var(--azul-profundo);
    display: block;
    transition: 0.3s ease;
  }

  .menu {
    position: absolute;
    top: 112px;
    left: 0;
    width: 100%;
    background: white;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s ease;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
  }

  .menu a {
    padding: 16px 25px;
    border-bottom: 1px solid var(--linea);
  }

  .menu a::after {
    display: none;
  }

  .menu-toggle:checked ~ .menu {
    max-height: 500px;
    opacity: 1;
  }

  .menu-toggle:checked + .menu-hamburguesa span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:checked + .menu-hamburguesa span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-hamburguesa span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .grid-quienes,
  .grid-mision {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .foto-quienes {
    max-width: 700px;
    width: 100%;
  }

  .footer-contenido {
    grid-template-columns: 1fr auto;
  }

  .footer-contenido p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* CELULAR */

@media screen and (max-width: 600px) {
  .contenedor {
    width: min(100% - 32px, 1180px);
  }

  .header,
  .menu-contenedor {
    min-height: 88px;
  }

  .menu {
    top: 88px;
  }

  .logo {
    gap: 9px;
  }

  .logo-imagen {
    width: 62px;
    height: 62px;
  }

  .logo-titulo {
    font-size: 0.88rem;
  }

  .logo-subtitulo {
    font-size: 0.74rem;
  }

  .hero {
    height: calc(100vh - 88px);
    min-height: 600px;
  }

  .seccion {
    padding: 80px 0;
  }

  .tarjeta {
    padding: 38px 28px;
  }

  .botones-hero {
    width: 100%;
  }

  .boton {
    width: 100%;
    max-width: 300px;
  }

  .proposito {
    padding: 95px 16px;
  }

  .logo-footer-imagen {
    width: 48px;
    height: 48px;
  }

  .logo-texto-footer .logo-titulo {
    font-size: 0.74rem;
  }

  .logo-texto-footer .logo-subtitulo {
    font-size: 0.64rem;
  }
}


/* =========================================
   PÁGINA: QUÉ HACEMOS
========================================= */

.hero-que-hacemos {
  height: calc(100vh - 112px);
  min-height: 610px;
}

.hero-que-hacemos-fondo {
  position: absolute;
  inset: 0;

  

  background:
    linear-gradient(rgba(8, 54, 76, 0.16), rgba(8, 54, 76, 0.16)),
    linear-gradient(135deg, #138dcc, #0b5678);

  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.seccion-cambio {
  background: var(--blanco);
}

.contenido-cambio {
  max-width: 1050px;
}

.contenido-cambio h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.contenido-cambio p:not(.subtitulo) {
  color: var(--texto-suave);
  font-size: 1.12rem;
  line-height: 1.85;
  max-width: 1020px;
  margin-bottom: 20px;
}

/* PROGRAMAS */

.programas {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: white;
}

.programas-fondo {
  position: absolute;
  inset: 0;

  /*
  background-image: url("imagenes/programas-fondo.jpg");
  */

  background:
    linear-gradient(
      180deg,
      rgba(9, 39, 61, 0.9),
      rgba(9, 39, 61, 0.95)
    ),
    linear-gradient(135deg, var(--azul-profundo), #123f5c);

  background-size: cover;
  background-position: center;
}

.programas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.contenido-programas {
  position: relative;
  z-index: 2;
  padding: 90px 0 105px;
}

.introduccion-programas {
  width: min(650px, 100%);
  margin: 0 auto 80px;
  text-align: center;
}

.introduccion-programas p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
}

.programas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
}

.programa-card {
  text-align: center;
  padding: 25px 20px;
}

.icono-programa {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--amarillo-logo);
  font-size: 2.2rem;
  line-height: 1;
}

.icono-derechos {
  color: var(--verde-logo);
}

.programa-card h3 {
  max-width: 550px;
  margin: 0 auto;
  font-family: "Montserrat", Arial, sans-serif;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.linea-programa {
  width: 95px;
  height: 3px;
  margin: 20px auto 22px;
  background: var(--amarillo-logo);
}

.programa-card:nth-child(2) .linea-programa {
  background: var(--verde-logo);
}

.programa-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.programa-card li {
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* FRANJA FINAL */

.franja-accion {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 25%, rgba(244, 196, 0, 0.24) 0 9%, transparent 9.4%),
    radial-gradient(circle at 85% 78%, rgba(164, 79, 224, 0.25) 0 12%, transparent 12.4%),
    linear-gradient(135deg, var(--azul-profundo), var(--azul-logo));
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.contenido-accion {
  max-width: 920px;
  margin: auto;
}

.contenido-accion h2 {
  color: white;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.contenido-accion > p:not(.subtitulo) {
  max-width: 780px;
  margin: auto;
  font-size: 1.18rem;
  line-height: 1.75;
}

/* AJUSTES RESPONSIVOS PARA QUÉ HACEMOS */

@media screen and (max-width: 950px) {
  .programas-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .introduccion-programas {
    margin-bottom: 45px;
  }
}

@media screen and (max-width: 600px) {
  .hero-que-hacemos {
    height: calc(100vh - 88px);
    min-height: 530px;
  }

  .contenido-cambio p:not(.subtitulo) {
    font-size: 1rem;
    line-height: 1.75;
  }

  .contenido-programas {
    padding: 70px 0 75px;
  }

  .franja-accion {
    padding: 90px 18px;
  }
}

css
/* =========================================
   PÁGINA: NORMATIVIDAD
========================================= */

.normatividad-intro {
  background: var(--blanco);
  padding-top: 220px !important;
  padding-bottom: 65px;
}

.normatividad-texto {
  max-width: 1080px;
}

.normatividad-texto p {
  margin: 0 0 26px;
  color: var(--texto-suave);
  font-size: 1.16rem;
  line-height: 1.85;
}

.normatividad-texto p strong {
  color: var(--azul-profundo);
}

.normatividad-indicacion {
  color: var(--azul-profundo) !important;
  font-weight: 700;
}

/* SECCIÓN DE DOCUMENTOS */

.documentos-seccion {
  background: var(--gris-fondo);
  padding: 45px 0 110px;
}

.titulo-documentos {
  margin-bottom: 42px;
}

.titulo-documentos h1 {
  margin-bottom: 0;
  color: var(--azul-profundo);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 800;
}

.lista-documentos {
  display: grid;
  gap: 18px;
}

.fila-documento {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 25px 28px;
  background: var(--blanco);
  border-left: 5px solid var(--azul-logo);
  box-shadow: 0 10px 28px rgba(11, 86, 120, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.fila-documento:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(11, 86, 120, 0.15);
}

.fila-documento:nth-child(3n + 2) {
  border-left-color: var(--amarillo-logo);
}

.fila-documento:nth-child(3n) {
  border-left-color: var(--morado-logo);
}

.numero-documento {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--azul-claro);
  color: var(--azul-profundo);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.nombre-documento h2 {
  margin: 0 0 5px;
  color: var(--azul-profundo);
  font-size: 1.05rem;
  line-height: 1.35;
}

.nombre-documento p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.93rem;
  line-height: 1.5;
}

.boton-documento {
  min-width: 160px;
  padding: 13px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-logo);
  color: var(--blanco);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: 0.3s ease;
}

.boton-documento::before {
  content: "↗";
  margin-right: 8px;
  font-size: 1rem;
}

.boton-documento:hover {
  background: var(--morado-logo);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(164, 79, 224, 0.25);
}

.actualizacion-documentos {
  margin-top: 42px;
  padding: 26px 30px;
  border-left: 4px solid var(--verde-logo);
  background: #f1fbef;
}

.actualizacion-documentos p {
  margin: 0 0 12px;
  color: var(--texto-suave);
  font-size: 0.94rem;
}

.actualizacion-documentos p:last-child {
  margin-bottom: 0;
}

.actualizacion-documentos a {
  color: var(--morado-logo);
  font-weight: 800;
}

.actualizacion-documentos a:hover {
  color: var(--azul-profundo);
}

/* AJUSTES RESPONSIVOS */

@media screen and (max-width: 800px) {
  .normatividad-intro {
    padding: 80px 0 45px;
  }

  .normatividad-texto p {
    font-size: 1.04rem;
    line-height: 1.75;
  }

  .fila-documento {
    grid-template-columns: 55px 1fr;
    gap: 18px;
    padding: 22px;
  }

  .boton-documento {
    grid-column: 2;
    justify-self: start;
    margin-top: 3px;
  }
}

@media screen and (max-width: 600px) {
  .documentos-seccion {
    padding: 35px 0 75px;
  }

  .fila-documento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .numero-documento {
    width: 42px;
    height: 42px;
  }

  .boton-documento {
    grid-column: auto;
    width: 100%;
  }

  .actualizacion-documentos {
    padding: 22px 20px;
  }
}

/* =========================================
   PÁGINA: CONTACTO
========================================= */

.contacto-principal {
  min-height: 670px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fcff, #e9f8fd);
  padding: 110px 0;
}

.contacto-contenido {
  position: relative;
  z-index: 2;
}

.contacto-encabezado {
  width: min(760px, 100%);
  margin: 0 auto 70px;
  text-align: center;
}

.contacto-encabezado h1 {
  margin-bottom: 0;
  color: var(--azul-profundo);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.contacto-encabezado .linea {
  margin-left: auto;
  margin-right: auto;
}

.contacto-encabezado > p:last-child {
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.08rem;
  line-height: 1.8;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contacto-card {
  min-height: 300px;
  padding: 42px 25px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--blanco);
  border-top: 5px solid var(--azul-logo);
  box-shadow: 0 15px 34px rgba(11, 86, 120, 0.11);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-card:nth-child(2) {
  border-top-color: var(--amarillo-logo);
}

.contacto-card:nth-child(3) {
  border-top-color: var(--morado-logo);
}

.contacto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(11, 86, 120, 0.18);
}

.contacto-card::after {
  content: "";
  width: 150px;
  height: 150px;
  position: absolute;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(24, 168, 220, 0.09);
}

.contacto-card:nth-child(2)::after {
  background: rgba(244, 196, 0, 0.12);
}

.contacto-card:nth-child(3)::after {
  background: rgba(164, 79, 224, 0.1);
}

.icono-contacto {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(11, 86, 120, 0.18);
}

.icono-ubicacion {
  background: var(--azul-logo);
}

.icono-correo {
  background: var(--amarillo-logo);
  color: var(--texto);
}

.icono-telefono {
  background: var(--morado-logo);
}

.contacto-card h2 {
  margin: 0;
  color: var(--azul-profundo);
  font-size: 1.05rem;
  font-weight: 800;
}

.linea-contacto {
  width: 75px;
  height: 3px;
  margin: 20px auto;
  background: var(--verde-logo);
}

.contacto-card p,
.contacto-card a {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.05rem;
  line-height: 1.75;
}

.contacto-card a {
  color: var(--azul-profundo);
  font-weight: 700;
  transition: color 0.3s ease;
}

.contacto-card a:hover {
  color: var(--morado-logo);
}

/* CÍRCULOS DECORATIVOS */

.circulo-contacto {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.circulo-uno {
  width: 290px;
  height: 290px;
  top: -145px;
  left: -105px;
  background: rgba(24, 168, 220, 0.13);
}

.circulo-dos {
  width: 210px;
  height: 210px;
  top: 120px;
  right: -90px;
  background: rgba(244, 196, 0, 0.14);
}

.circulo-tres {
  width: 340px;
  height: 340px;
  bottom: -220px;
  left: 38%;
  background: rgba(164, 79, 224, 0.1);
}

/* FRANJA INFERIOR */

.contacto-mensaje {
  background: var(--blanco);
  padding: 85px 0;
}

.contacto-mensaje-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.contacto-mensaje h2 {
  margin-bottom: 16px;
  color: var(--azul-profundo);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contacto-mensaje p:not(.subtitulo) {
  max-width: 720px;
  margin: 0;
  color: var(--texto-suave);
  font-size: 1.04rem;
  line-height: 1.75;
}

.retraso-dos {
  animation-delay: 0.3s;
}

/* RESPONSIVE CONTACTO */

@media screen and (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: auto;
  }

  .contacto-mensaje-contenido {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contacto-mensaje-contenido .boton {
    justify-self: start;
  }
}

@media screen and (max-width: 600px) {
  .contacto-principal {
    padding: 75px 0;
  }

  .contacto-encabezado {
    margin-bottom: 45px;
  }

  .contacto-encabezado > p:last-child {
    font-size: 1rem;
  }

  .contacto-card {
    min-height: 270px;
    padding: 35px 20px;
  }

  .contacto-mensaje {
    padding: 70px 0;
  }

  .contacto-mensaje-contenido .boton {
    width: 100%;
  }
}