/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #c05621;
  --accent-hover: #9c4221;
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --success: #276749;
  --warning-bg: #fffaf0;
  --warning-border: #ed8936;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
}
.logo-icon { font-size: 1.4rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: .45rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
}
.btn-nav:hover { background: var(--primary-light); text-decoration: none; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  transition: all .2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-light); text-decoration: none; }
.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: white; text-decoration: none; }
.btn-amazon {
  background: #ff9900;
  color: #111;
  font-weight: 600;
}
.btn-amazon:hover { background: #e88b00; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; text-decoration: none; }
.btn-block { display: block; width: 100%; margin-top: .6rem; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a4365 100%);
  color: white;
  padding: 4.5rem 0 5rem;
  text-align: center;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero h1 span { color: #f6ad55; }
.hero-sub {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}
.hero-ctas .btn-primary { background: var(--accent); }
.hero-ctas .btn-primary:hover { background: var(--accent-hover); }
.hero-ctas .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.5);
}
.hero-ctas .btn-secondary:hover { background: white; color: var(--primary); }

/* ===== Aviso monetización ===== */
.aviso-monetizacion {
  background: #edf2f7;
  padding: .85rem 0;
  font-size: .9rem;
  color: var(--text-light);
  text-align: center;
}

/* ===== Cards ===== */
.cards-section { padding: 3.5rem 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: .5rem;
  color: var(--primary);
}
.section-intro {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; color: var(--primary); }
.card p { color: var(--text-light); font-size: .95rem; margin-bottom: 1.2rem; }
.card-link {
  font-weight: 600;
  color: var(--accent);
  font-size: .95rem;
}
.card-link:hover { text-decoration: underline; }

/* ===== Monetización / Productos ===== */
.monetizacion {
  background: white;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.producto {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.producto-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent);
  color: white;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 20px;
}
.producto h4 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--primary); }
.producto p { font-size: .9rem; color: var(--text-light); margin-bottom: .6rem; }
.precio { font-weight: 600; color: var(--success); margin-bottom: .8rem !important; }

/* ===== Escuelas ===== */
.escuelas {
  padding: 3.5rem 0;
  background: var(--bg);
}
.escuelas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.escuela {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.escuela h4 { color: var(--primary); margin-bottom: .5rem; }
.escuela p { font-size: .92rem; color: var(--text-light); margin-bottom: .8rem; }
.escuela ul { margin: .5rem 0 1rem 1.2rem; font-size: .9rem; color: var(--text-light); }
.destacado { color: var(--accent) !important; font-weight: 500; }

/* ===== Newsletter ===== */
.newsletter {
  background: var(--primary);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.newsletter h2 { font-family: 'Playfair Display', serif; margin-bottom: .5rem; }
.newsletter p { opacity: .9; margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex;
  gap: .6rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: .75rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}
.form-note { font-size: .8rem; opacity: .7; margin-top: .8rem; }

/* ===== Page specific ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a4365 100%);
  color: white;
  padding: 2.8rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: .4rem;
}
.page-hero p { opacity: .9; }

.content { padding: 2.5rem 0 3rem; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.main-content h2 {
  font-size: 1.45rem;
  color: var(--primary);
  margin: 1.8rem 0 .8rem;
}
.main-content h2:first-child { margin-top: 0; }
.main-content ul { margin: .6rem 0 1rem 1.4rem; }
.main-content li { margin-bottom: .35rem; }

.info-box {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
}
.info-box h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: .4rem; }
.info-box.warning {
  border-left-color: var(--warning-border);
  background: var(--warning-bg);
}
.info-box.warning h3 { color: #c05621; }

.sidebar-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.sidebar-box h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: .6rem; }
.sidebar-box p { font-size: .9rem; color: var(--text-light); margin-bottom: .6rem; }

/* ===== Footer ===== */
.footer {
  background: #1a202c;
  color: #a0aec0;
  padding: 2.5rem 0 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer strong { color: white; display: block; margin-bottom: .5rem; }
.footer a { color: #a0aec0; display: block; margin-bottom: .3rem; }
.footer a:hover { color: white; }
.copyright {
  border-top: 1px solid #2d3748;
  padding-top: 1.2rem;
  text-align: center;
  font-size: .85rem;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
  .content-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 3.5rem; }
}

/* ===== Infoproductos PDF ===== */
.infoproductos {
  background: linear-gradient(180deg, #edf2f7 0%, #fff 100%);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.producto-pdf {
  border: 2px solid var(--primary);
  position: relative;
  background: white;
}
.producto-pdf .producto-badge {
  background: var(--accent);
  top: -12px;
}
.pdf-features {
  list-style: none;
  margin: .8rem 0 1rem;
  padding: 0;
  font-size: .9rem;
  color: var(--text-light);
}
.pdf-features li {
  margin-bottom: .3rem;
}
.pack-box {
  margin-top: 2.5rem;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.pack-box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: .4rem;
}
.pack-box .precio {
  font-size: 1.4rem;
  color: #f6ad55;
  margin: .8rem 0 1.2rem;
}
.pack-box .btn-primary {
  background: var(--accent);
}
.pack-box .btn-primary:hover {
  background: var(--accent-hover);
}

/* ===== Logo mejorado ===== */
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none !important;
  color: inherit;
}
.logo img, .logo-svg {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
}
.logo-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.15;
  font-weight: 700;
}
.logo-text small {
  display: block;
  font-size: .7rem;
  color: var(--text-light);
  letter-spacing: .02em;
}

/* ===== Botones de compartir ===== */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .15s, opacity .15s;
}
.share-btn:hover { transform: translateY(-1px); opacity: .92; text-decoration: none !important; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877F2; }
.share-btn.copy { background: var(--primary); }

/* ===== Banner de cookies ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a202c;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  font-size: .9rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 240px;
  line-height: 1.45;
}
.cookie-banner a { color: #90cdf4; }
.cookie-banner .btn-cookie {
  background: #f6ad55;
  color: #1a202c;
  border: none;
  padding: .55rem 1.3rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  white-space: nowrap;
}
.cookie-banner .btn-cookie:hover { background: #ed8936; }

/* Legal footer note */
.legal-owner {
  font-size: .8rem;
  color: #a0aec0;
  margin-top: .5rem;
}
