/* =========================
   Base / Reset
========================= */
:root{
  --bg: #9ee0d6;
  --bg-soft: #eef3fb;
  --card: #ffffff;
  --text: #12324f;
  --muted: #5c728a;
  --line: rgba(18, 50, 79, 0.12);

  --primary: #1f5fbf;
  --primary-2: #1a4fa0;

  --success: #01989d;
  --success-2: #01989d;

  --shadow: 0 10px 25px rgba(16, 45, 74, 0.10);
  --shadow-soft: 0 8px 18px rgba(16, 45, 74, 0.08);

  --radius: 16px;
  --radius-lg: 22px;

  --container: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% 10%, #dfeeff 0%, rgba(223,238,255,0) 60%) ,
              linear-gradient(180deg, #f8fbff 0%, var(--bg) 50%, #eef4ff 100%);
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   Header / Navbar
========================= */
.site-header{
  position: sticky;
  /*position: fixed; */
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-mark{
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  /*background: #ffffff;
  border: 1px solid rgba(255, 0, 60, 0.12);*/
}

.brand-name{
  color: var(--text);
  font-size: 16px;
}

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link{
  font-weight: 600;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}

.nav-link:hover{
  background: rgba(31,95,191,0.08);
  color: var(--text);
}

/* =========================
   Buttons
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(180deg, var(--success) 0%, var(--success-2) 100%);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover{ filter: brightness(1.03); }

.btn-success{
  background: linear-gradient(180deg, var(--success) 0%, var(--success-2) 100%);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-success:hover{ filter: brightness(1.03); }

/* =========================
   Hero
========================= */
.hero{
  padding: 46px 0 18px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-title{
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
}

.hero-subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 55ch;
  font-size: 16px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-art{
  display: grid;
  place-items: center;
}

.art-card{
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.72) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.art-emoji{
  font-size: 52px;
}

.art-text{
  font-weight: 800;
  color: var(--text);
}

/* =========================
   Sections
========================= */
.section{
  padding: 34px 0;
}

.section.soft{
  background: linear-gradient(180deg, rgba(31,95,191,0.04) 0%, rgba(31,95,191,0.02) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title{
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.3px;
}

.section-subtitle{
  margin: -6px 0 18px;
  color: var(--muted);
}

/* =========================
   Cards Grid
========================= */
.grid.cards{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-media{
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
}

.card-media img{
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}



.card-media .emoji{
  font-size: 44px;
}

.card-body{
  padding: 14px;
  display: grid;
  gap: 8px;
}

.card-title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.card-desc{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-actions{
  padding: 0 14px 14px;
}

.btn-card{
  width: 100%;
}

/* =========================
   Note / Steps
========================= */
.note{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(46,139,87,0.09);
  border: 1px solid rgba(46,139,87,0.20);
  color: #245d3c;
  font-weight: 700;
}

.steps{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.steps li{
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
}

/* =========================
   Form
========================= */
.form{
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field{
  display: grid;
  gap: 8px;
}

.field-full{
  grid-column: 1 / -1;
}

.field-label{
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
}

input, select, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(18, 50, 79, 0.18);
  padding: 12px 12px;
  outline: none;
  background: white;
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea{ resize: vertical; }

input:focus, select:focus, textarea:focus{
  border-color: rgba(31,95,191,0.7);
  box-shadow: 0 0 0 4px rgba(31,95,191,0.12);
}

.form-actions{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.form-status{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

/* =========================
   Footer
========================= */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(248, 251, 255, 0.7);
  backdrop-filter: blur(10px);
}

.footer-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.backtop{
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}

.backtop:hover{
  background: rgba(31,95,191,0.08);
  color: var(--text);
}

/* =========================
   Social pills
========================= */
.social{
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 900;
  color: var(--text);
}

/* =========================
   Skeleton loader
========================= */
.skeleton{
  pointer-events: none;
}

.skeleton .card-media{
  background: linear-gradient(90deg,
    rgba(18, 50, 79, 0.06) 0%,
    rgba(18, 50, 79, 0.10) 50%,
    rgba(18, 50, 79, 0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
}

.skeleton-line{
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(18, 50, 79, 0.06) 0%,
    rgba(18, 50, 79, 0.10) 50%,
    rgba(18, 50, 79, 0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
}

.w60{ width: 60%; }
.w90{ width: 90%; }

@keyframes shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .grid.cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .nav{ display: none; } /* simple: ocultamos menú; luego si quieres lo hacemos hamburguesa */
  .grid.cards{
    grid-template-columns: 1fr;
  }
  .form-grid{
    grid-template-columns: 1fr;
  }
  .footer-row{
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   Fix anclas con header sticky
========================= */

/* Ajusta este valor según la altura real de tu header */
:root{
  --header-offset: 80px;
}

/* Cuando saltas a #secciones, deja espacio arriba */
html{
  scroll-padding-top: var(--header-offset);
  scroll-behavior: smooth;
}

/* Extra: margen al llegar a un ancla (por si algún navegador ignora scroll-padding) */
[id]{
  scroll-margin-top: var(--header-offset);
}


/* =========================
   Download card (PDF)
========================= */
.download-card{
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.download-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.92);
}

.download-icon{
  font-size: 46px;
}

.download-title{
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
}

.download-subtitle{
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}



.card-title{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text);
}

.card-desc{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Progreso ===== */
.progress{
  margin-top: 6px;
}

.progress-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.progress-text,
.progress-pct{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.progress-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.progress-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,148,153,1), rgba(16,185,129,1));
  transition: width .25s ease;
}

.video-wrap{
  width: 100%;
  max-width: 1100px;
  margin: 18px auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe{
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================
   Footer info layout
========================= */
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 24px;
}

.footer-col{
  color: var(--muted);
  font-size: 14px;
}

.footer-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--muted);
}

.footer-text{
  margin: 0 0 14px;
  line-height: 1.5;
}

.footer-text a{
  color: var(--success);
  font-weight: 700;
}

.footer-bottom{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive footer */
@media (max-width: 900px){
  .footer-grid{
    grid-template-columns: 1fr;
  }
}

.hero-subtitle a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

.hero-subtitle a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.hero-top-image {
  display: block;
  /*margin: 0 auto 18px; /* centrada + espacio abajo */
  max-width: 200px;     /* ajusta tamaño aquí */
  height: auto;
}


/* =========================
   WhatsApp Floating Button
========================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform .15s ease, box-shadow .15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 26px rgba(0,0,0,0.3);
  color: white;
}


@media (max-width: 560px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* =========================
   WhatsApp Heartbeat Animation
========================= */
@keyframes whatsapp-heartbeat {
  0%   { transform: scale(1); }
  10%  { transform: scale(1.1); }
  20%  { transform: scale(1); }
  30%  { transform: scale(1.15); }
  40%  { transform: scale(1); }
  100% { transform: scale(1); }
}

.whatsapp-float {
  animation: whatsapp-heartbeat 2.5s infinite;
}

/* Pausa el latido cuando el usuario pasa el mouse */
.whatsapp-float:hover {
  animation-play-state: paused;
}

/* =========================
   Imagen con link en Header
========================= */
.header-image-link {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.header-image {
  height: 42px;          /* ajusta si la quieres más grande */
  width: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* =========================
   Hero video elegante
========================= */
.hero-video-wrap{
  position: relative;
  max-width: 520px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16, 45, 74, 0.25);
}

/* el video nunca debe tapar al botón */
.hero-video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 22px;
  position: relative;
  z-index: 0;
}

/* overlay debajo del botón */
.hero-video-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  z-index: 1;
  pointer-events: none;
}

/* botón SIEMPRE arriba y clickeable */
.video-sound-btn{
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 10;            /* 🔥 arriba de todo */
  pointer-events: auto;   /* 🔥 asegura click */
}



.video-sound-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  background: rgba(0, 170, 175, 1);
}

.video-sound-btn:active {
  transform: scale(0.97);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.video-sound-btn {
  animation: pulse 1.6s infinite;
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
}

/* =========================
   Hero video (FIJO y limpio)
========================= */

.hero-video-wrap{
 /* position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;         
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16, 45, 74, 0.25);
  background: #000;
  */
  position: relative;
  max-width: 520px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16, 45, 74, 0.25);
  aspect-ratio: 16 / 9;
}

/* El <video> (tu elemento tiene class="hero-video") */
.hero-video{
  width: 100%;
  height: 100%;
  border: none;
  /*display: block;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(1.1) contrast(1.05);
  position: relative;
  z-index: 0;*/
}

/* Overlay suave */
.hero-video-wrap::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.30)
  );
  pointer-events: none;
}

/* Botón sonido */
.video-sound-btn{
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;                  /* ✅ SIEMPRE arriba */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 152, 157, 0.95);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.video-sound-btn:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  background: rgba(0, 170, 175, 1);
}

@keyframes pulse{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.06); }
  100%{ transform: scale(1); }
}

.video-sound-btn{
  animation: pulse 1.6s infinite;
}

.video-sound-btn:hover{
  animation-play-state: paused;
}

.video-sound-btn[aria-pressed="true"]{
  background: rgba(16, 185, 129, 0.95); /* verde */
}

/* =========================
   Fix icono header en móvil
========================= */

/* Evita que el logo/ícono se deformen o “aplasten” */
.brand-mark,
.header-image-link{
  flex: 0 0 auto;
}

/* Asegura que la imagen siempre se vea bien */
.header-image{
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* En móvil: reduce tamaño y alinea bien */
@media (max-width: 560px){
  .header-row{
    align-items: center;
    gap: 10px;
  }

  /* reduce el logo redondo */
  .brand-mark{
    width: 44px;
    height: 44px;
  }

  /* reduce el ícono “extra” (el del cuadro rojo) */
  .header-image{
    height: 28px;   /* prueba 24–32 */
  }

  /* que no se “vea flotando” */
  .header-image-link{
    margin-right: 6px;
  }

  /* si tu texto del nombre está empujando todo, bájale tamaño */
  .brand-name{
    font-size: 13px;
    line-height: 1.1;
  }
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.nav-toggle span{
  display: block;
  height: 2px;
  width: 18px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Móvil */
@media (max-width: 560px){
  .nav-toggle{ display: inline-flex; }

  /* ocultamos nav normal */
  .nav{
    display: none;
  }

  /* cuando está abierto */
  .nav.nav-open{
    display: grid;
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    gap: 6px;
    z-index: 60;
  }

  .nav.nav-open .nav-link{
    padding: 12px 12px;
    border-radius: 12px;
  }

  /* para que el menú se posicione bien */
  .site-header{ position: sticky; }
  .header-row{ position: relative; }
}

/* Animación a X cuando está abierto */
.nav-toggle.is-open span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2){
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

.pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 0;
}

.page-btn{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}

.page-btn:active{ transform: translateY(1px); }

.page-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

.page-info{
  font-weight: 800;
  color: var(--muted);
}

/* =========================
   Back to top Floating Button
========================= */
.backtop-float{
  position: fixed;
  right: 22px;
  bottom: 92px; /* queda justo arriba del WhatsApp */
  
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.95);
  color: var(--text);

  border-radius: 999px;
  border: 1px solid var(--line);

  font-size: 22px;
  font-weight: 900;

  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  z-index: 998;

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.backtop-float:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 28px rgba(0,0,0,0.25);
  background: #fff;
}

/* Ajuste móvil */
@media (max-width: 560px){
  .backtop-float{
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 86px;
  }
}

.hero-video-wrap {
  position: relative;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16,45,74,.25);
}

.hero-video {
  width: 100%;
  height: 100%;
  border: none;
}


