/* =========================================================
   Ask4Teacher — Hoja de estilos principal
   Paleta oficial (extraída del manual de marca):
   Navy:   #003049
   Orange: #F77F00
   Cream:  #EAE2B7
   ========================================================= */

:root{
  --navy: #003049;
  --navy-light: #0b4a6b;
  --orange: #F77F00;
  --orange-light: #ff9a33;
  --cream: #EAE2B7;
  --cream-light: #FAF6E7;
  --white: #FFFFFF;
  --text: #16242E;
  --text-soft: #4d5d67;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,48,73,0.10);
  --shadow-hover: 0 16px 40px rgba(0,48,73,0.18);
  --max-width: 1180px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
section{ padding: 96px 24px; }
.container{ max-width: var(--max-width); margin:0 auto; }
.eyebrow{
  display:inline-block;
  font-weight:600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--orange);
  margin-bottom: 12px;
}
h1,h2,h3,h4{ font-family: var(--sans); font-weight:700; color: var(--navy); margin:0 0 16px; line-height:1.2; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size: 1.25rem; }
p{ margin:0 0 16px; color: var(--text-soft); }
.section-head{ max-width: 640px; margin: 0 auto 56px; text-align:center; }
.section-head p{ margin: 0 auto; }

.accent-serif{ font-family: var(--serif); font-style: italic; font-weight:700; color: var(--navy); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight:600;
  font-size: .95rem;
  cursor:pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(247,127,0,.35); }
.btn-primary:hover{ box-shadow: 0 12px 26px rgba(247,127,0,.45); }
.btn-outline{ background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color: var(--white); }
.btn-light{ background: var(--white); color: var(--navy); }
.btn-light:hover{ background: var(--cream); }
.btn-block{ width:100%; }

/* ===================== HEADER ===================== */
.site-header{
  position: sticky; top:0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled{ box-shadow: 0 4px 20px rgba(0,48,73,.08); border-color: rgba(0,48,73,.06); }
.nav-wrap{
  max-width: var(--max-width); margin:0 auto; padding: 18px 24px;
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
}
.logo-link{ display:flex; align-items:center; margin-right: 44px; }
.logo-link img{ height: 68px; width:auto; }
.nav-links{ display:flex; align-items:center; gap: 32px; }
.nav-links a{
  font-weight:500; font-size:.95rem; color: var(--navy);
  position:relative; padding: 4px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px;
  background: var(--orange); transition: width .2s ease;
}
.nav-links a:hover::after{ width:100%; }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background: var(--navy); border-radius:2px; }

@media (max-width: 880px){
  .nav-links{
    position:fixed; inset: 64px 0 0 0; background: var(--white);
    flex-direction:column; align-items:flex-start; padding: 32px 28px; gap: 22px;
    transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.06);
    width: min(320px, 80vw); left:auto; right:0;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display:flex; }
  .nav-cta .btn-outline{ display:none; }
}

.nav-links a.active{ color: var(--orange); }
.nav-links a.active::after{ width:100%; }

/* ===================== PAGE BANNER (inner pages) ===================== */
.page-banner{
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--white) 100%);
  padding: 64px 24px 56px; text-align:center;
}
.page-banner .eyebrow{ display:block; }
.page-banner h1{ font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.page-banner p{ max-width: 560px; margin: 0 auto; }
.breadcrumb{ font-size:.85rem; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumb a{ color: var(--navy); font-weight:600; }
.breadcrumb span{ margin: 0 6px; }

/* ===================== HERO ===================== */
.hero{
  position: relative; overflow:hidden;
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--white) 100%);
  padding: 72px 24px 40px;
}
.hero-grid{
  max-width: var(--max-width); margin:0 auto;
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:center;
}
.hero-copy .tagline{
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 20px;
}
.hero-copy .tagline .sans-part{ font-family: var(--sans); font-style:normal; font-weight:400; color: var(--navy); }
.hero-copy h1{ font-size: clamp(2.1rem, 4.2vw, 3.1rem); margin-bottom: 18px; }
.hero-copy p.lead{ font-size: 1.08rem; max-width: 520px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top: 28px; }
.hero-stats{ display:flex; gap: 36px; margin-top: 44px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; font-size:1.6rem; color: var(--navy); font-weight:700; }
.hero-stats div span{ font-size:.85rem; color: var(--text-soft); }

.hero-visual{ position:relative; display:flex; justify-content:center; align-items:center; }
.hero-card{
  position:relative; background: var(--navy); border-radius: 24px; padding: 40px 32px;
  box-shadow: var(--shadow); color: var(--cream); overflow:hidden; width:100%; max-width: 420px;
}
.hero-card .dotgrid{ position:absolute; inset:0; opacity:.35; }
.hero-card-inner{ position:relative; z-index:2; }
.hero-card .rocket{ width:auto; height:64px; margin-bottom: 18px; }
.hero-card h3{ color: var(--cream); font-family: var(--serif); font-style:italic; font-size:1.3rem; }
.hero-card p{ color: rgba(234,226,183,.85); font-size:.92rem; }
.hero-card ul{ margin-top: 18px; display:flex; flex-direction:column; gap:10px; }
.hero-card li{ display:flex; align-items:center; gap:10px; font-size:.92rem; color: var(--cream); }
.hero-card li svg{ flex:none; width:18px; height:18px; color: var(--orange); }

/* dot grid decoration */
.dotgrid{ display:grid; grid-template-columns: repeat(6,1fr); gap:10px; }
.dotgrid span{ width:6px; height:6px; border-radius:50%; background: var(--orange); }

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

/* ===================== SERVICIOS ===================== */
.services-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 28px;
}
.service-card{
  background: var(--white); border: 1px solid rgba(0,48,73,.08); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  display:flex; flex-direction:column;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card.featured{ border: 2px solid var(--orange); position:relative; background: var(--cream-light); }
.service-card .badge{
  position:absolute; top:-14px; right:22px; background: var(--orange); color: var(--white);
  font-size:.74rem; font-weight:700; letter-spacing:.02em; padding:6px 14px; border-radius:999px;
  box-shadow: 0 4px 10px rgba(247,127,0,.35);
}
.service-icon{
  width:56px; height:56px; border-radius:14px; background: var(--cream-light);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.service-icon svg{ width:28px; height:28px; color: var(--navy); }
.service-illustration{
  width:104px; height:104px; object-fit:contain; margin-bottom:18px;
}
.service-card.featured .service-illustration{ margin-top:6px; }
.service-card h3{ margin-bottom:10px; }
.service-card p{ font-size:.95rem; flex:1; }
.service-card .service-link{
  margin-top:14px; font-weight:600; font-size:.9rem; color: var(--orange); display:inline-flex; align-items:center; gap:6px;
}
.service-card .service-link svg{ width:16px; height:16px; transition: transform .2s ease; }
.service-card .service-link:hover svg{ transform: translateX(4px); }

/* ===================== FAQ ===================== */
.faq{ background: var(--white); }
.faq-list{ max-width: 760px; margin: 0 auto; display:flex; flex-direction:column; gap:14px; }
.faq-item{
  background: var(--cream-light); border: 1px solid rgba(0,48,73,.08); border-radius: 14px;
  padding: 6px 24px; overflow:hidden;
}
.faq-item summary{
  list-style:none; cursor:pointer; padding: 18px 0; display:flex; align-items:center;
  justify-content:space-between; gap:16px; font-weight:600; color: var(--navy); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .faq-icon{
  flex:none; width:26px; height:26px; border-radius:50%; background: var(--orange); color: var(--white);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem; font-weight:700;
  transition: transform .2s ease;
}
.faq-item[open] summary .faq-icon{ transform: rotate(45deg); }
.faq-item p{ margin: 0 0 18px; color: var(--text-soft); font-size:.95rem; }

/* ===================== LEAD MAGNET (descarga) ===================== */
.lead-magnet{ background: var(--cream-light); }
.lead-card{
  background: var(--navy); border-radius: 28px; padding: 48px; display:grid;
  grid-template-columns: 1fr 1fr; gap: 40px; align-items:center; overflow:hidden; position:relative;
}
.lead-copy .eyebrow{ color: var(--orange); }
.lead-copy h2{ color: var(--white); margin-bottom: 12px; }
.lead-copy p{ color: rgba(234,226,183,.85); }
.lead-copy ul{ margin-top: 16px; display:flex; flex-direction:column; gap:10px; }
.lead-copy li{ display:flex; align-items:center; gap:10px; font-size:.92rem; color: var(--cream); }
.lead-copy li svg{ flex:none; width:18px; height:18px; color: var(--orange); }
.lead-panel{
  background: var(--white); border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
.lead-panel .field{ margin-bottom: 14px; }
.lead-panel .form-status{ margin-top: 10px; }
.lead-download{ display:none; text-align:center; }
.lead-download.show{ display:block; }
.lead-download svg{ width:40px; height:40px; color: var(--orange); margin: 0 auto 12px; }
.lead-download p{ color: var(--text-soft); font-size:.9rem; }
@media (max-width: 880px){ .lead-card{ grid-template-columns: 1fr; padding: 32px 24px; } }

/* ===================== COMO FUNCIONA ===================== */
.how{ background: var(--navy); color: var(--cream); }
.how .section-head h2{ color: var(--white); }
.how .section-head p{ color: rgba(234,226,183,.8); }
.steps{ display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 28px; counter-reset: step; }
.step{ background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 30px 24px; }
.step .num{
  width:42px; height:42px; border-radius:50%; background: var(--orange); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:16px;
}
.step h3{ color: var(--white); }
.step p{ color: rgba(234,226,183,.75); font-size:.92rem; margin:0; }

/* ===================== NOSOTROS ===================== */
.about{ background: var(--white); }
.about-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items:center; }
.about-media{
  background: var(--cream); border-radius: 24px; padding: 40px; position:relative; overflow:hidden;
  min-height: 320px; display:flex; align-items:center; justify-content:center;
}
.about-media img{ width: 220px; }
.about-list{ margin-top: 24px; display:flex; flex-direction:column; gap:14px; }
.about-list li{ display:flex; gap:12px; align-items:flex-start; font-size:.95rem; color: var(--text-soft); }
.about-list svg{ flex:none; width:20px; height:20px; color: var(--orange); margin-top:2px; }
@media (max-width: 880px){ .about-grid{ grid-template-columns: 1fr; } }

/* ===================== TESTIMONIOS ===================== */
.testimonials{ background: var(--cream-light); }
.t-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 26px; }
.t-card{ background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.t-card .stars{ color: var(--orange); font-size: 1rem; margin-bottom: 12px; letter-spacing:2px; }
.t-card p{ font-style: italic; color: var(--text); font-size:.95rem; }
.t-person{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.t-avatar{
  width:42px; height:42px; border-radius:50%; background: var(--navy); color: var(--cream);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem;
}
.t-person strong{ display:block; font-size:.9rem; color: var(--navy); }
.t-person span{ font-size:.8rem; color: var(--text-soft); }
.t-note{ text-align:center; font-size:.82rem; color: var(--text-soft); margin-top: 12px; }

/* ===================== CONTACTO ===================== */
.contact{ background: var(--white); }
.contact-grid{ display:grid; grid-template-columns: .85fr 1.15fr; gap: 48px; }
.contact-info{ background: var(--navy); border-radius: 24px; padding: 40px 34px; color: var(--cream); }
.contact-info h3{ color: var(--white); }
.contact-info p{ color: rgba(234,226,183,.85); font-size:.95rem; }
.contact-item{ display:flex; gap:14px; align-items:flex-start; margin: 20px 0; }
.contact-item svg{ flex:none; width:22px; height:22px; color: var(--orange); margin-top:2px; }
.contact-item a, .contact-item span{ font-size:.95rem; color: var(--cream); }
.social-row{ display:flex; gap:12px; margin-top: 28px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; transition: background .2s ease, transform .2s ease;
}
.social-row a:hover{ background: var(--orange); transform: translateY(-3px); }
.social-row svg{ width:18px; height:18px; color: var(--cream); }

.contact-form{
  background: var(--cream-light); border-radius: 24px; padding: 40px 34px; box-shadow: var(--shadow);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.field{ margin-bottom: 18px; display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:.85rem; font-weight:600; color: var(--navy); }
.field input, .field select, .field textarea{
  border: 1.5px solid rgba(0,48,73,.18); border-radius: 10px; padding: 12px 14px;
  font-family: var(--sans); font-size:.95rem; background: var(--white); color: var(--text);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--orange); }
.field textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size:.78rem; color: var(--text-soft); margin-top: 10px; }
.form-status{ font-size:.9rem; margin-top:12px; display:none; padding:10px 14px; border-radius:10px; }
.form-status.ok{ display:block; background:#e6f4ea; color:#1e7b34; }
.form-status.err{ display:block; background:#fde8e8; color:#c0392b; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } .form-row{ grid-template-columns: 1fr; } }

/* ===================== CTA FINAL ===================== */
.cta-final{
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 28px; margin: 0 24px 96px; padding: 56px 40px; text-align:center; color: var(--white);
  max-width: var(--max-width); margin-left:auto; margin-right:auto;
}
.cta-final h2{ color: var(--white); }
.cta-final p{ color: rgba(255,255,255,.9); max-width: 520px; margin:0 auto 26px; }
.cta-final .btn-light{ font-weight:700; }

/* ===================== FOOTER ===================== */
.site-footer{ background: var(--navy); color: rgba(234,226,183,.8); padding: 56px 24px 28px; }
.footer-grid{
  max-width: var(--max-width); margin:0 auto; display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img{ height:30px; margin-bottom:14px; }
.footer-brand p{ color: rgba(234,226,183,.7); font-size:.88rem; max-width: 280px; }
.footer-col h4{ color: var(--white); font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:.9rem; color: rgba(234,226,183,.75); }
.footer-col a:hover{ color: var(--orange); }
.footer-bottom{
  max-width: var(--max-width); margin: 24px auto 0; display:flex; justify-content:space-between;
  align-items:center; flex-wrap:wrap; gap:12px; font-size:.8rem; color: rgba(234,226,183,.6);
}
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ===================== MATERIALES / ZONA PRIVADA ===================== */
.auth-section{ background: var(--cream-light); padding: 80px 24px; min-height: 60vh; display:flex; align-items:center; }
.auth-card{
  max-width: 440px; margin: 0 auto; width:100%; background: var(--white); border-radius: 24px;
  border: 1px solid rgba(0,48,73,.08); box-shadow: var(--shadow); padding: 40px 36px; text-align:center;
}
.auth-card img{ width:56px; margin: 0 auto 20px; }
.auth-card h1{ font-size: 1.5rem; margin-bottom: 8px; }
.auth-card p{ font-size: .92rem; margin-bottom: 26px; }
.auth-card .btn{ margin-bottom: 12px; }
.auth-demo-link{
  display:block; margin-top: 18px; font-size: .82rem; color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 3px; background:none; border:none; cursor:pointer; width:100%;
}
.auth-demo-link:hover{ color: var(--orange); }
.auth-note{ font-size: .78rem; color: var(--text-soft); margin-top: 22px; }

.demo-banner{
  background: var(--orange); color: var(--white); text-align:center; font-size: .85rem;
  padding: 10px 24px; font-weight: 500;
}
.demo-banner strong{ font-weight: 700; }

.materials-header{ background: var(--cream-light); padding: 48px 24px 40px; }
.materials-header .container{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap: 16px; }
.materials-header .welcome{ font-size: .92rem; color: var(--text-soft); margin-bottom: 6px; }
.materials-header h1{ margin-bottom: 0; }
.logout-link{ font-size: .92rem; font-weight:600; color: var(--orange); background:none; border:none; cursor:pointer; }

.materials-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 28px; }
.materials-cat{
  background: var(--cream-light); border-radius: 16px; border: 1px solid rgba(0,48,73,.08); padding: 28px;
}
.materials-cat-head{ display:flex; align-items:center; gap: 16px; margin-bottom: 20px; }
.materials-cat-head img{ width: 52px; height:52px; object-fit:contain; }
.materials-cat-head h3{ margin:0; }
.material-file{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  background: var(--white); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; font-size: .92rem;
}
.material-file:last-child{ margin-bottom:0; }
.material-file .file-name{ color: var(--text); font-weight:500; }
.material-file a{ color: var(--orange); font-weight:600; font-size:.88rem; white-space:nowrap; }
.material-empty{
  background: transparent; border: 1.5px dashed rgba(0,48,73,.18); border-radius: 10px;
  padding: 18px; text-align:center; font-size: .88rem; color: var(--text-soft);
}

/* ===================== UTIL / ANIMATIONS ===================== */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform: translateY(0); }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy); color:var(--white); padding:10px 16px; z-index:2000;
}
.skip-link:focus{ left:10px; top:10px; }
