@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,75..125,100..900;1,75..125,100..900&display=swap');

:root {
  --dark:   #1C353B;
  --lime:   #E9FF6A;
  --white:  #ffffff;
  --bg:     #f5f5f5;
  --mint:   #ACFFE2;
  --pink:   #FFC3AC;
  --purple: #E588FF;

  --text:       #111;
  --text-mid:   #555;
  --text-muted: #666;
  --text-soft:  #888;
  --text-faint: #aaa;

  --border:       #ddd;
  --border-light: #eee;
  --border-mid:   #ccc;

  --font: 'Archivo', sans-serif;

  --xs:   11px;
  --sm:   12px;
  --base: 13px;
  --md:   14px;
  --lg:   15px;
  --xl:   18px;
  --2xl:  22px;
  --3xl:  28px;
  --4xl:  34px;
  --2xs:  10px;

  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   8px;
  --r-xl:   10px;
  --r-pill: 20px;
  --r-full: 50%;
}

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

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--base);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; font-variation-settings: 'wdth' 125; margin-top: 0; line-height: 1.15; }

.highlight { color: var(--pink); }
h3 .highlight { color: inherit; }
h1 { font-size: var(--4xl); line-height: 1.2; }
h2 { font-size: var(--2xl); }
h3 { font-size: var(--md); }
h4 { font-size: var(--base); }

p     { font-size: var(--base); color: var(--text-muted); margin: 0; }
small { font-size: var(--xs);   color: var(--text-faint); }


/* layout */

section {
  padding: 40px 30px;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 { color: var(--dark); margin-bottom: 20px; }

.bg-white { background: var(--white); max-width: 100%; padding: 40px 0; }
.bg-lime  { background: var(--lime);  max-width: 100%; padding: 40px 0; }
.bg-lime h2 { color: var(--dark); }

.container { max-width: 1000px; margin: 0 auto; padding: 0 30px; }

section:has(+ #faq)   { margin-bottom: 0; }
section:has(+ footer) { margin-bottom: 0; }


/* nav */

nav {
  background: var(--dark);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

nav .logo img { height: 36px; display: block; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: flex-end; }
nav ul li a { color: var(--text-faint); text-decoration: none; font-size: var(--base); }
nav ul li a:hover { color: var(--white); }

.menu-toggle { display: none; }
.menu-icon   { display: none; flex-direction: column; cursor: pointer; gap: 5px; }

.menu-icon span {
  width: 24px;
  height: 2.5px;
  background: var(--border-mid);
  border-radius: 2px;
  transition: all .3s ease;
}

#menu-toggle:checked ~ .nav-menu                    { display: flex; }
#menu-toggle:checked ~ .menu-icon span:nth-child(1) { transform: rotate(45deg) translate(8px,8px); }
#menu-toggle:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .menu-icon span:nth-child(3) { transform: rotate(-45deg) translate(8px,-8px); }


/* hero */

.hero {
  background: var(--dark) url('img/bannerprincipalhome2.jpg') center/cover;
  background-blend-mode: overlay;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
  min-height: 600px;
}

.hero-text {
  text-align: center;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 { color: var(--white); margin: 0 0 12px; }
.page-home .hero h1 { font-size: 56px; }
.hero p  { font-size: var(--lg); color: var(--text-faint); margin: 0 0 20px; }

.hero--sub { padding: 60px 40px; min-height: 260px; }

.hero button {
  background: var(--lime);
  color: var(--dark);
  border: none;
  padding: 12px 28px;
  font-size: var(--lg);
  font-weight: 400;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font);
}


/* video */

.video-hero {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.video-hero video { width: 100%; max-width: 480px; height: auto; display: block; }


/* cards */

.cards { display: flex; flex-wrap: wrap; gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.card img { width: 100%; height: 220px; object-fit: cover; }

.cards-riesgos .card h3 { padding-top: 24px; }
.cards-riesgos .card h3 svg { width: 32px; height: 32px; }

.card-solucion { width: 100%; border-top: 1px solid var(--border); margin-top: auto; }
.card-solucion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: var(--sm);
  font-weight: 700;
  color: var(--dark);
  background: var(--pink);
  cursor: pointer;
}
.card-solucion-toggle:hover { background: var(--pink); }
.card-solucion-flecha { transition: transform .2s; }
.card-solucion.abierto .card-solucion-flecha { transform: rotate(180deg); }
.card-solucion-texto { display: none; padding: 0 20px 20px; font-size: var(--sm); color: var(--text-mid); line-height: 1.5; text-align: left; }
.card-solucion.abierto .card-solucion-texto { display: block; }

.card h3 {
  color: var(--dark);
  padding: 20px 20px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.card h3 svg { width: 24px; height: 24px; stroke: var(--dark); }
.card p { padding: 0 20px 20px; margin: 0; }


/* noticias */

.noticia {
  background: var(--lime);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  text-align: left;
}

.noticia img   { width: 100%; height: 280px; object-fit: cover; display: block; }
.noticia > span  { font-size: var(--xs); color: var(--dark); text-transform: uppercase; display: block; padding: 12px 18px 0; }
.noticia h3    { margin: 6px 0; font-size: var(--md); color: var(--text); padding: 0 18px; }
.noticia p     { margin-bottom: 6px; padding: 0 18px; }
.noticia small { display: block; padding: 0 18px 18px; }


/* charlas */

.charla {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.charla-fecha {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--r-md);
  min-width: 70px;
}

.charla-fecha .dia { font-size: 38px; font-weight: 400; display: block; line-height: 1; }
.charla-fecha .mes { font-size: var(--base); display: block; margin-top: 4px; letter-spacing: .05em; }

.charla-info h3 { margin: 0 0 4px; font-size: var(--base); }
.charla-info p  { font-size: var(--sm); color: var(--text-soft); }


/* banner cta */

.banner-cta {
  background: rgba(28,53,59,.7) url('img/madrecuidandoasuhijo.jpg') center/cover;
  background-blend-mode: overlay;
  color: var(--white);
  padding: 120px 30px;
  text-align: center;
  max-width: 100%;
  margin: 40px 0;
}

.banner-cta h2 { color: var(--white); margin-bottom: 20px; font-size: var(--3xl); }

.btn-banner-cta {
  background: var(--white);
  color: var(--dark);
  border: none;
  padding: 12px 28px;
  font-size: var(--lg);
  font-weight: 400;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font);
}

.btn-banner-cta:hover { background: var(--bg); }


/* banner split */

.banner-split {
  display: flex;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 5px solid var(--lime);
}

.banner-split-left {
  flex: 1;
  background: var(--mint);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.banner-split-left h2   { color: var(--dark); margin-bottom: 20px; text-align: left; }
.banner-split-icono img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 20px; display: block; }

.btn-banner-split {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: var(--base);
  font-family: var(--font);
  font-weight: 400;
  cursor: pointer;
}

.btn-banner-split:hover { background: var(--lime); color: var(--dark); }

.banner-split-right { flex: 1; overflow: hidden; max-height: 380px; }
.banner-split-right img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* diccionario */

.buscador { display: flex; gap: 10px; margin-bottom: 24px; }

.buscador input {
  flex: 1;
  padding: 10px 16px;
  font-size: var(--md);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-family: var(--font);
  outline: none;
}

.buscador input:focus { border-color: var(--dark); }

.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.filtros button {
  background: var(--white);
  border: 1px solid var(--border-mid);
  padding: 6px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: var(--base);
  font-family: var(--font);
}

.filtros button.activo { background: var(--dark); color: var(--white); border-color: var(--dark); }

.dic-grid { display: flex; flex-wrap: wrap; gap: 16px; }

.dic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  flex: 1 1 260px;
  text-align: center;
}

.dic-card-top   { display: flex; justify-content: center; align-items: flex-start; margin-bottom: 8px; }
.dic-palabra    { font-size: var(--xl); font-weight: 400; color: var(--dark); }
.dic-pronunciacion { font-size: var(--xs); color: var(--text-faint); margin-bottom: 8px; font-style: italic; }

.btn-pronunciar {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  font-size: var(--xs);
  font-family: var(--font);
  transition: background .15s, border-color .15s, color .15s;
}
.btn-pronunciar::after { content: 'Escuchar'; }
.btn-pronunciar:hover { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.btn-pronunciar svg { width: 14px; height: 14px; stroke: currentColor; flex-shrink: 0; }
.btn-pronunciar.playing { background: var(--purple); border-color: var(--purple); color: var(--dark); }
.btn-pronunciar.playing svg { animation: pulso-audio .5s infinite; }
@keyframes pulso-audio { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.dic-definicion    { font-size: var(--base); color: var(--text-mid); margin-bottom: 10px; line-height: 1.5; }
.dic-ejemplo-label { font-size: var(--2xs); color: var(--dark); text-transform: uppercase; margin-bottom: 4px; }

.dic-ejemplo {
  font-size: var(--sm);
  color: var(--text-soft);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-style: italic;
}

.sin-resultados { display: none; color: var(--text-faint); font-size: var(--md); padding: 20px 0; }


/* algunos tips */

.habla-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 0;
}
.habla-grid::-webkit-scrollbar { display: none; }

.habla-card {
  background: var(--lime);
  border: none;
  border-radius: var(--r-lg);
  padding: 24px;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.habla-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.habla-slider-btn {
  background: var(--dark);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.habla-slider-btn:hover { background: var(--lime); color: var(--dark); }

.habla-dots { display: flex; gap: 8px; align-items: center; }

.habla-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--border-mid);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all .2s;
}
.habla-dot.activo { background: var(--dark); width: 24px; }

.habla-card h3 {
  color: var(--dark);
  font-size: var(--base);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.habla-icono img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }

.habla-card ul   { padding-left: 16px; margin: 0; }
.habla-card li   { font-size: var(--base); color: var(--text-mid); margin-bottom: 8px; line-height: 1.5; }


/* faq */

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-pregunta {
  padding: 14px 18px;
  font-size: var(--base);
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  font-family: var(--font);
}

.faq-pregunta:hover                { background: var(--bg); }
.faq-item.abierto .faq-pregunta    { background: var(--dark); color: var(--white); }
.faq-respuesta                     { display: none; padding: 24px 22px; font-size: var(--base); color: var(--text-mid); line-height: 1.6; text-align: left; }
.faq-item.abierto .faq-respuesta   { display: block; }

#faq { background: var(--lime); padding-top: 40px; }

.faq-icono { width: 60px; height: 60px; object-fit: contain; margin-bottom: 12px; }

.bg-lime .btn-ver-mas { background: var(--dark); color: var(--white); }


/* faq intro — preguntas.html */

.faq-intro {
  background: var(--mint);
  padding: 40px 30px;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-stat-card {
  background: var(--lime);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 680px;
  width: 100%;
  margin-bottom: 28px;
  text-align: left;
}

.faq-stat-chart {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--dark) 0% 68%, rgba(28,53,59,.18) 68% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.faq-stat-chart::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--lime);
}

.faq-stat-num {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  color: var(--dark);
  line-height: 1;
}

.faq-stat-text p     { color: var(--dark); font-size: var(--base); margin-bottom: 6px; }
.faq-stat-text small { font-size: var(--xs); color: var(--dark); opacity: .6; }

.faq-search {
  width: 100%;
  max-width: 560px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--base);
  font-family: var(--font);
  outline: none;
  margin-bottom: 16px;
  background: var(--white);
}

.faq-search:focus { border-color: var(--dark); }
.faq-item-icono  { width: 22px; height: auto; flex-shrink: 0; }

.faq-filtros { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.faq-filtro {
  background: transparent;
  border: 1px solid var(--dark);
  padding: 6px 18px;
  border-radius: var(--r-pill);
  font-size: var(--sm);
  font-family: var(--font);
  cursor: pointer;
  color: var(--dark);
}

.faq-filtro.activo { background: var(--dark); color: var(--white); }


/* stats — noticias.html */

.stats-banner {
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  max-width: 100%;
  margin: 0;
}

.stat { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.stat-icono { width: 28px; height: 28px; stroke: var(--dark); margin-bottom: 10px; }
.stat-num  { font-size: var(--3xl); color: var(--dark); font-weight: 400; line-height: 1; margin-bottom: 8px; }
.stat-desc { font-size: var(--sm); color: var(--dark); line-height: 1.5; max-width: 160px; }
.stat-divider { width: 1px; height: 60px; background: rgba(28,53,59,.2); flex-shrink: 0; }


/* botones */

.btn-inscribir {
  margin-left: auto;
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-size: var(--sm);
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font);
}

.btn-inscribir:hover { background: var(--lime); color: var(--dark); }

.btn-ver-mas {
  background: var(--lime);
  color: var(--dark);
  border: none;
  padding: 12px 28px;
  font-size: var(--lg);
  font-weight: 400;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font);
  margin-top: 30px;
}

.btn-ver-mas:hover { background: var(--bg); }


/* banner separador */

.bannerseparador { width: 100vw; max-width: none; margin: 0 calc(50% - 50vw); padding: 0; }
.bannerseparador-img { display: block; width: 100%; height: auto; }


/* footer */

footer {
  background: var(--dark);
  border-top: 3px solid var(--lime);
  color: var(--text-faint);
  font-size: var(--base);
}

.footer-inner {
  display: flex;
  gap: 60px;
  padding: 60px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.footer-brand { flex: 2; }
.footer-brand img { height: 34px; display: block; margin-bottom: 16px; }
.footer-brand p   { font-size: var(--base); color: var(--text-soft); line-height: 1.7; max-width: 260px; margin-bottom: 20px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
  font-size: var(--sm);
  color: var(--text-faint);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  transition: all .2s;
}

.footer-social a:hover { border-color: var(--lime); color: var(--lime); }

.footer-links-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.footer-links-col span { font-size: var(--xs); text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 4px; }
.footer-links-col a    { font-size: var(--base); color: var(--text-soft); text-decoration: none; transition: color .2s; }
.footer-links-col a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 60px;
  text-align: center;
  font-size: var(--xs);
  color: rgba(255,255,255,.25);
}


/* overrides por página */

.page-home .cards .card:nth-child(1) { background: var(--mint); border-color: var(--mint); }
.page-home .cards .card:nth-child(2) { background: var(--lime); border-color: var(--lime); }
.page-home .cards .card:nth-child(3) { background: var(--pink); border-color: var(--purple); }
.page-home .cards .card:nth-child(4) { background: var(--dark); border-color: var(--dark); }
.page-home .cards .card:nth-child(4) h3     { color: var(--white); }
.page-home .cards .card:nth-child(4) h3 svg { stroke: var(--white); }
.page-home .cards .card:nth-child(4) p      { color: rgba(255,255,255,.75); }

#charlas .charla-fecha {
  background: var(--mint);
  color: var(--dark);
}

.hero--riesgos    { background-image: url('img/fotobannerriesgos.png'); }
.hero--noticias   { background-image: url('img/bannernoticias.png'); }
.hero--preguntas  { background-image: url('img/bannerpreguntasfrecuentes.png'); }
.hero--tutoriales { background-image: url('img/madre_cuidando_a_su_hija_de_redes.png'); }
.hero--contacto   { background-image: url('img/contacto.jpg'); }
.hero--foro       { background-image: url('img/foro.JPG'); }
.hero--cuenta     { background-image: url('img/micuenta.jpg'); }

.banner-cta--riesgos,
.banner-cta--flush {
  margin-top: 0;
  margin-bottom: 0;
}


/* boton volver arriba */

.btn-arriba {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background .2s, color .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  z-index: 999;
}
.btn-arriba.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-arriba:hover { background: var(--lime); color: var(--dark); }


/* trending topics */

.trending-section {
  background: var(--dark);
  max-width: 100%;
  padding: 56px 0 64px;
}
.trending-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
}
.trending-icono { width: 32px; height: 32px; stroke: var(--lime); margin-bottom: 4px; }
.trending-header h2 { color: var(--white); margin: 0; font-size: var(--3xl); }
.trending-header p  { font-size: var(--sm); color: rgba(255,255,255,.45); margin: 0; }

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.tt {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: var(--lg);
  font-weight: 700;
  font-variation-settings: 'wdth' 125;
  cursor: default;
  line-height: 1.2;
}

.tt-def {
  display: block;
  font-size: var(--xs);
  font-weight: 400;
  font-variation-settings: 'wdth' 75;
  opacity: .65;
  margin-top: 3px;
}

.tt-lime { background: var(--lime); color: var(--dark); }
.tt-pink { background: var(--pink); color: var(--dark); }
.tt-dark { background: rgba(255,255,255,.15); color: var(--white); }
.tt-mint { background: var(--mint); color: var(--dark); }


/* tutoriales */

.tut-hero { padding: 60px 30px 40px; max-width: 700px; margin: 0 auto; text-align: center; }
.tut-hero h1 { margin-bottom: 12px; }
.tut-hero p  { font-size: var(--lg); color: var(--text-mid); }

.plataformas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 30px 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.plat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--font);
  font-size: var(--sm);
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.plat-btn.activo, .plat-btn:not(:disabled):hover { border-color: var(--dark); color: var(--dark); background: var(--bg); }
.plat-btn:disabled { opacity: .5; cursor: default; }

.plat-logo-img { width: 20px; height: 20px; display: block; }
.plat-logo .plat-logo-img { width: 26px; height: 26px; }

.plat-panel { display: none; }
.plat-panel.activo { display: block; }

.plat-panel-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.plat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-light);
}
.plat-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}
.plat-tiktok-bg { background: #010101; }
.plat-ig-bg     { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.plat-yt-bg     { background: #ff0000; }
.plat-wa-bg     { background: #25D366; }
.plat-fb-bg     { background: #1877F2; }
.plat-snap-bg   { background: #FFFC00; color: #000; }

.plat-header-info { flex: 1; text-align: left; }
.plat-header-info strong { display: block; font-size: var(--md); font-weight: 700; font-variation-settings: 'wdth' 125; color: var(--dark); }
.plat-header-info span   { font-size: var(--xs); color: var(--text-soft); }

.plat-body {
  display: flex;
  gap: 0;
}

.plat-media {
  width: 340px;
  flex-shrink: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.plat-media img   { width: 100%; height: 100%; object-fit: cover; }
.plat-media video { width: 100%; height: 100%; object-fit: cover; }

.yt-thumb { display: block; width: 100%; height: 100%; position: relative; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--white);
  background: rgba(0,0,0,.35);
  transition: background .2s;
}
.yt-thumb:hover .yt-play { background: rgba(0,0,0,.55); }

.plat-pasos { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; }

.plat-paso {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.plat-paso:last-child { border-bottom: none; }

.plat-paso-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: var(--sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.plat-paso-content { flex: 1; text-align: left; }
.plat-paso-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--sm);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.plat-paso p { font-size: var(--xs); color: var(--text-mid); line-height: 1.5; margin: 0; }

.plat-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}
.plat-tip p { font-size: var(--xs); color: var(--text-mid); line-height: 1.5; text-align: left; margin: 0; }


/* contacto */

.contacto-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  text-align: left;
}
.contacto-form-col { flex: 1 1 0; }
.contacto-form-col h2 { text-align: left; margin-bottom: 6px; }
.contacto-form-col > p { text-align: left; margin-bottom: 28px; color: var(--text-mid); }
.contacto-info-col { flex: 0 0 280px; display: flex; flex-direction: column; gap: 16px; }

.contacto-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row .form-group { flex: 1; }
.form-group label { font-size: var(--sm); font-weight: 700; color: var(--dark); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: var(--base);
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--dark); }
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

.btn-enviar {
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  padding: 14px 32px;
  font-family: var(--font);
  font-size: var(--base);
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background .15s;
}
.btn-enviar:hover { background: var(--lime); color: var(--dark); }

.form-ok {
  display: none;
  background: var(--lime);
  color: var(--dark);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: var(--sm);
  font-weight: 700;
  text-align: left;
}

.contacto-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.contacto-info-card svg { width: 22px; height: 22px; stroke: var(--dark); flex-shrink: 0; margin-top: 2px; }
.contacto-info-card strong { display: block; font-size: var(--sm); color: var(--dark); margin-bottom: 3px; }
.contacto-info-card span { font-size: var(--xs); color: var(--text-mid); }
.contacto-info-card a { color: var(--dark); text-decoration: none; font-size: var(--xs); }
.contacto-info-card a:hover { text-decoration: underline; }


/* foro — foro.html */

.foro-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: left; }
.foro-intro-texto { flex: 1 1 320px; }
.foro-intro-texto h2 { margin-bottom: 6px; }
.foro-intro-texto p  { color: var(--text-mid); }

.foro-nuevo-tema { display: none; margin-top: 30px; text-align: left; }
.foro-nuevo-tema.abierto { display: flex; }

.foro-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  text-align: left;
}

.foro-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.foro-item.abierto .foro-header { background: var(--dark); color: var(--white); }
.foro-item.abierto .foro-meta { color: var(--text-faint); }

.foro-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--sm);
  flex-shrink: 0;
}

.foro-header-info { flex: 1; }
.foro-header-info h3 { margin: 0 0 4px; font-size: var(--base); }
.foro-meta { font-size: var(--sm); color: var(--text-soft); }

.foro-flecha { transition: transform .2s; }
.foro-item.abierto .foro-flecha { transform: rotate(180deg); }

.foro-conversacion { display: none; padding: 0 20px 20px; border-top: 1px solid var(--border-light); }
.foro-item.abierto .foro-conversacion { display: block; padding-top: 18px; }

.foro-mensaje { display: flex; gap: 14px; margin-bottom: 16px; }
.foro-mensaje:last-child { margin-bottom: 0; }
.foro-mensaje-cuerpo strong { font-size: var(--sm); color: var(--dark); }
.foro-hora { font-size: var(--xs); color: var(--text-soft); margin-left: 8px; }
.foro-mensaje-cuerpo p { margin-top: 4px; color: var(--text-mid); }

.foro-responder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.foro-responder input,
.foro-responder textarea { font-size: var(--sm); background: var(--bg); padding: 10px 12px; }
.foro-responder textarea { min-height: 60px; }

.btn-responder {
  align-self: flex-start;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  padding: 9px 20px;
  font-family: var(--font);
  font-size: var(--sm);
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-responder:hover { background: var(--lime); color: var(--dark); }


/* miperfil — miperfil.html */

.cuenta-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  text-align: left;
}
.cuenta-card h2 { text-align: center; margin-bottom: 6px; }
.cuenta-card > p { text-align: center; color: var(--text-mid); margin-bottom: 24px; }

#vista-login.oculto { display: none; }
#vista-perfil { display: none; }
#vista-perfil.activo { display: block; }

.perfil-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; text-align: left; }
.perfil-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.perfil-header-info h3 { margin: 0 0 4px; font-size: var(--md); color: var(--dark); }
.perfil-header-info p  { color: var(--text-mid); font-size: var(--sm); }

.perfil-hijos { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.perfil-hijo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.perfil-hijo strong { color: var(--dark); font-size: var(--sm); }
.perfil-hijo span   { color: var(--text-soft); font-size: var(--xs); }

.btn-cerrar-sesion {
  background: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: var(--sm);
  cursor: pointer;
}
.btn-cerrar-sesion:hover { background: var(--dark); color: var(--white); }


/* responsive */

@media (max-width: 768px) {
  nav { padding: 15px 20px; }
  .menu-icon { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    display: none;
    z-index: 100;
  }

  nav ul li a { font-size: var(--md); padding: 8px 0; display: block; }

  section, .bg-white, .bg-lime { padding: 30px 20px; }

  .hero { flex-direction: column; padding: 30px 20px; text-align: center; }
  .hero-text { width: 100%; }

  .cards { flex-direction: column; }
  .card  { flex: none; height: auto; width: 100%; }
  .noticia, .charla, .faq-item, .foro-item { width: 100%; }

  .charla { flex-direction: column; align-items: stretch; }
  .charla-info { width: 100%; }
  .btn-inscribir { margin-left: 0; width: 100%; }

  .banner-split { flex-direction: column; }
  .banner-split-left  { padding: 36px 24px; }
  .banner-split-right { max-height: 260px; }

  .bannerseparador { margin: 0; }
  .dic-grid { flex-direction: column; }

  .faq-stat-card { flex-direction: column; gap: 12px; }

  .stats-banner { flex-direction: column; padding: 32px 24px; gap: 28px; }
  .stat-divider { width: 60px; height: 1px; }

  .footer-inner  { flex-direction: column; padding: 36px 24px; gap: 32px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom  { padding: 16px 24px; }

  .plat-body   { flex-direction: column; }
  .plat-media  { width: 100%; height: 220px; }
  .plat-header { padding: 16px 20px; }
  .plat-pasos  { padding: 16px 20px; }
}
