/* =========================
PITHYPOP DESIGN SYSTEM
========================= */

:root{
--primary:#58C26D;
--primary-dark:#34A853;
--bg:#F6F8FB;
--text:#1f2937;
--card:#ffffff;
--radius:22px;
--shadow:0 20px 40px rgba(0,0,0,.06);
--link-blue:#3B82F6;

/* ===== HERO ===== */
  --hero-title: clamp(26px, 2.5vw, 42px);
  --hero-subtitle: clamp(18px, 1.6vw, 24px);
  --hero-text: clamp(14px, 1.2vw, 18px);

  /* ===== CARDS ===== */
  --card-title: clamp(16px, 1.3vw, 20px);
  --card-text: clamp(14px, 1vw, 16px);

  /* ===== SECTIONS ===== */
  --section-title: clamp(24px, 2vw, 30px);

  /* ===== FORM ===== */
  --form-title: clamp(20px, 1.8vw, 26px);
  --input-text: 14px;

  /* ===== UI GENERAL ===== */
  --menu-text: 15px;
  --footer-text: 14px;

  --logo-size:48px;
}


/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family: "Inter", system-ui, -apple-system, sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.5;
font-size:var(--text-base);
}

/* CONTAINER */

.container{
max-width:1100px;
margin:auto;
padding:20px;
}

.header{
  background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  position:sticky;
  top:0;
  z-index:10;
}

/* franja superior */
.top-strip{
  height:8px;
  background:#FFF6CC;
}

/* barra principal */
.header-bar{
  max-width:1100px;
  margin:auto;
  padding:10px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* grupo izquierdo */
.header-left{
  display:flex;
  align-items:center;
  gap:10px;
}

/* grupo derecho */
.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo{
  height:48px;
}

.brand-logo{
  height:32px;
  display:block;
}

/* derecha */
.header-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
}

/* idioma */
.lang-switch{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:6px 12px;
  font-weight:600;
  cursor:pointer;
}

.mobile-menu{
  max-height:0;
  overflow:hidden;
  background:white;
  transition:max-height .35s ease;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
}

.mobile-menu a{
  display:block;
  padding:14px 20px;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  border-top:1px solid #f1f1f1;
}

.mobile-menu a:hover{
  background:#f8fafc;
}

/* abierto */
.mobile-menu.open{
  max-height:320px;
}

/* hamburguesa */
.menu-toggle{
  width:38px;
  height:30px;
  border:none;
  background:transparent;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}

.menu-toggle span{
  width:22px;
  height:2px;
  background:#1E2A3A;
  border-radius:2px;
  display:block;
  margin:auto;
  transition:all .28s ease;
  transform-origin:center;
}

/* animación a X */
.menu-toggle.active span:nth-child(1){
  transform:translateY(11.6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
  opacity:0;
}

.menu-toggle.active span:nth-child(3){
  transform:translateY(-11.6px) rotate(-45deg);
}

/* ocultar menú viejo */
.menu{
  display:none;
}

a{
  color: var(--link-blue);
}
a.active{
  color:var(--primary);
}

/* HERO */

.hero{
padding:40px 0 10px;
}

.hero-title{
font-size:var(--hero-title);
font-weight:600;
line-height:1.16;
color:#1f2937;
text-wrap:balance;
margin-top: 20px;

}

.accent{
color:var(--primary);
font-weight:700;
}

.accent2{
color:#0f141b;
font-weight:700;
}

.hero-title::after{
content:"";
display:block;
width:54px;
height:4px;
background:var(--primary);
border-radius:99px;
margin-top:10px;
}

/* CARD VIDEO */

.hero-card{
background:var(--card);
border-radius:var(--radius);
box-shadow:var(--shadow);
overflow:hidden;
max-width:900px;
margin:auto;
}

.hero-media{
position:relative;
width:100%;
aspect-ratio:16/9;
background:#000;
border-radius:20px;
overflow:hidden;
}

.hero-media video{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

/* BOTON SOBRE VIDEO */

.hero-btn{
position:absolute;
bottom:20px;
left:50%;
transform:translateX(-50%);
z-index:2;
}

.hero-btn img{
height:54px;
width:auto;
display:block;
filter: drop-shadow(0 10px 24px rgba(0,0,0,.35));
}

.hero-btn{
  display:none;
}

/* BOTON FUERA DEL VIDEO */

.cta-play{
  display:inline-block;
  margin:20px auto 0;
  text-align:center;
}

.cta-play .play-wrapper{
  animation:floatPlay 3s ease-in-out infinite;
}

.hero-cta{
  display:flex;
  justify-content:center;
  margin-top:18px;
  margin-bottom: 18px;
}

.play-wrapper{
  transition:transform .2s ease, box-shadow .2s ease;
}

.play-wrapper:hover{
  transform:translateY(-3px) scale(1.03);
  box-shadow:
    0 16px 40px rgba(0,0,0,.3),
    0 0 0 4px rgba(255,255,255,.3);
}
/* BUTTON */

.btn-primary{
background:var(--primary);
color:white;
padding:14px 22px;
border-radius:999px;
text-decoration:none;
font-weight:600;
box-shadow:0 6px 18px rgba(0,0,0,.15);
display:inline-block;
}

.play-wrapper{
display:inline-block;
background:#FFF4B8;
padding:14px 20px;
border-radius:18px;
box-shadow:
0 10px 25px rgba(0,0,0,.25),
0 0 0 4px rgba(255,255,255,.25);
animation:floatPlay 3s ease-in-out infinite;
}

.play-wrapper img{
height:42px;
display:block;
}

@keyframes floatPlay{
0%{ transform:translateY(0px); }
50%{ transform:translateY(-6px); }
100%{ transform:translateY(0px); }
}

/* SECTION */

.section{
margin-top:20px;
}

.section-title{
text-align:center;
font-size:var(--section-title);
margin-bottom:20px;
}

.section-link{
  text-align: center;
  font-size:var(--card-title) ;  
}

.section-link-wrapper{
  display:flex;
  justify-content:center;
  margin-top: 20px;
}

.section-link:hover{
  text-decoration:underline;
}

/* CARDS */

.cards{
display:grid;
gap:20px;
}

.card{
background:white;
border-radius:var(--radius);
box-shadow:var(--shadow);
overflow:hidden;
transition:.2s;
}

.card:hover{
transform:translateY(-4px);
}

.card img{
width:100%;
aspect-ratio:16/9;
object-fit:cover;
display:block;
}

.card-body{
padding:18px;
}

.card h3{
font-size:var(--card-title);
margin-bottom:6px;
}

.card p{
font-size:var(--card-text);
color:#6b7280;
}

/* SUBSCRIBE */

.subscribe{
background:white;
padding:30px;
border-radius:var(--radius);
box-shadow:var(--shadow);
max-width:500px;
margin:auto;
text-align:center;
}

.subscribe h2{
font-size:var(--form-title);
margin-bottom:8px;
}

.subscribe input{
width:100%;
padding:14px;
border-radius:999px;
border:1px solid #ddd;
margin-top:12px;
}

.subscribe button{
width:100%;
padding:14px;
border-radius:999px;
border:none;
background:var(--primary);
color:white;
margin-top:10px;
font-weight:600;
cursor:pointer;
}

/* MAILCHIMP MESSAGE */

#mc-message{
display:none;
margin-top:10px;
color:var(--primary-dark);
font-weight:600;
}

/* FOOTER */

.footer{
margin-top:60px;
padding:30px;
text-align:center;
color:#888;
font-size:var(--footer-text);
}

.lang-switch:hover{
border-color:var(--primary);
color:var(--primary);
transform:translateY(-1px);
}

.hero-subtitle{
  font-size:var(--hero-subtitle);
  font-weight:600;
  margin-bottom:10px;
  text-align:center;
}

.hero-sub{
  font-size:var(--hero-text);
  color:#6b7280;
  margin-bottom:0px;
  text-align:center;
}

.serie{
  width:180px;
  margin:auto;
  font-family:monospace;
  font-size:1.4rem;
  font-weight:700;
  margin-bottom:20px;
  color:#222;
}

/* estado inicial */
.animar-serie .fila{
  opacity:0;
  transform:translateY(8px);
}

/* animación */
.animar-serie.activa .fila{
  animation:mostrarFila .45s ease forwards;
}

/* tiempos */
.animar-serie.activa .fila:nth-child(1){animation-delay:0s;}
.animar-serie.activa .fila:nth-child(2){animation-delay:.7s;}
.animar-serie.activa .fila:nth-child(3){animation-delay:1.4s;}
.animar-serie.activa .fila:nth-child(4){animation-delay:2.1s;}
.animar-serie.activa .fila:nth-child(5){animation-delay:2.8s;}
.animar-serie.activa .fila:nth-child(6){animation-delay:3.5s;}
.animar-serie.activa .fila:nth-child(7){animation-delay:4.2s;}

@keyframes mostrarFila{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* +4 sutil */
.suma{
  text-align:center;
}

.suma span{
  color:#58C26D;
  font-weight:800;
  padding-bottom:2px;
  border-bottom:2px solid rgba(88,194,109,.35);
}

/* resultados apenas resaltados */
.resultado{
  color:#2b2b2b;
}

.fila{
  text-align:right;
}

.suma span{
  display:inline-block;
  width:2ch;              /* ancho de 2 caracteres */
  text-align:right;
  border-bottom:2px solid #222;
}

/* =========================
ARTICLE EXPERIENCE
========================= */

.article-content{
max-width:760px;
margin:auto;
}

.article-content h2{
font-size:clamp(22px,3.5vw,40px);
line-height:1.18;
font-weight:800;
margin-top:42px;
margin-bottom:14px;
letter-spacing:-0.02em;
color:var(--text);
}

.article-content h2::after{
content:"";
display:block;
width:54px;
height:4px;
background:var(--primary);
border-radius:99px;
margin-top:10px;
}

.article-content p,
.article-content li{
font-size:clamp(16px,2vw,30px);
line-height:1.8;
color:#374151;
margin-bottom:18px;
}

.article-content ul,
.article-content ol{
padding-left:24px;
margin-bottom:24px;
}

.article-content li{
margin-bottom:10px;
}

.article-content a{
font-weight:700;
text-decoration:none;
}

.article-content a:hover{
text-decoration:underline;
}

.article-cover{
display:block;
width:100%;
height:auto;
max-width:100%;
aspect-ratio:16/9;
object-fit:cover;
border-radius:22px;
margin:0 auto 34px;
box-shadow:var(--shadow);
}

.article-phone{
max-width:310px;
margin:26px auto;
padding:10px;
background:#111827;
border-radius:30px;
box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.article-phone img{
width:100%;
aspect-ratio:16/9;
object-fit:cover;
border-radius:22px;
display:block;
}

.article-wrap{
max-width:1100px;
}

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

@media(min-width:768px){

.hero{
padding:18px 0 10px;
} 

.cards{
grid-template-columns:repeat(3,1fr);
}

.subscribe form{
display:flex;
gap:10px;
}

.subscribe input{
margin:0;
}

.subscribe button{
width:auto;
}



.play-wrapper{
padding:10px 14px;
border-radius:14px;
}

.play-wrapper img{
height:34px;
}


.menu{
gap:12px;

}


 .brand-logo{
    height:28px;
  }


.article-cover{
aspect-ratio:16/9;
border-radius:18px;
margin-bottom:24px;
}

.article-wrap{
padding-left:14px;
padding-right:14px;
}

.container{
padding:14px;
}

.article-wrap{
padding:0;
}

}

/* =========================
DESKTOP
========================= */

@media(min-width:1200px){

.container{
max-width:1200px;
margin:auto;
padding:20px;
}


.hero{
  padding-top:60px;
}

.hero .container{
    max-width:1600px;
    margin:auto;
    padding:120px;
  }

  .hero-card{
    max-width:100%;
    margin:0;
  }

  
  .hero-brand{
text-align:center;
margin-top:10px;
}

.hero-brand img{
height:36px;
opacity:.9;
}

/* BOTÓN DESCARGA DESKTOP */
.hero-btn{
bottom:28px;
}

.hero-btn img{
height:72px;
}

 .hero-layout{
    display:grid;
    grid-template-columns: 2.7fr 2.2fr;
    gap:140px;
    align-items:center;
    
  }

  .hero-text{
    max-width:700px;
  }

  .hero-title{
    font-weight:600;
    line-height:1.5;    
  }
  
  .play-wrapper{
    padding:18px 26px;
    border-radius:20px;
  }

  .play-wrapper img{
    height:64px;
  }

  .hero-media{
    border-radius:20px;
  }

  .brand-top{
padding:20px 0 6px;
}

.brand-logo{
height:40px;
width:auto;
display:block;
}

.menu{
gap:100px;
}

.cards{
gap:40px;
}

.section{
margin-top:30px;
}

.section-title{
margin-bottom:60px;
}

.section-link-wrapper{
  display:flex;
  justify-content:center;
  margin-top: 40px;
}

.article-content{
max-width:820px;
}


.article-content{
max-width:900px;
margin:auto;
}

.article-content h2{
font-size:34px;
margin-top:40px;
margin-bottom:16px;
}

.article-content p,
.article-content li{
font-size:22px;
line-height:1.72;
}

.article-cover{
margin-bottom:60px;
}

  :root{
    --logo-size:70px;
    --menu-text: 20px;
    --hero-title: clamp(26px, 1.5vw, 42px);
    --hero-subtitle: clamp(22px, 1.6vw, 24px);
     --card-title: clamp(20px, 1.3vw, 20px);
  --card-text: clamp(18px, 1vw, 16px);
  --section-title: clamp(28px, 2vw, 36px);
  }
}
  

