/* ==========================================================
   TOKENS — paleta cálida, moderna y colorida
   navy + gold como ancla, con acentos vivos (púrpura, coral, teal)
   ========================================================== */
:root {
  --navy: #1B2A4A;
  --navy-soft: #2E4166;
  --gold: #B8925A;
  --gold-light: #E8C078;
  --cream: #FBF7EF;
  --white: #FFFFFF;
  --sage: #93A889;
  --ink: #2E2A24;
  --ink-soft: #5B564C;

  /* acentos vivos */
  --purple: #6B4E9C;
  --purple-light: #9B7FC7;
  --coral: #E8637A;
  --coral-light: #F3909F;
  --teal: #2FA6A0;
  --teal-light: #6FCFC8;
  --amber: #F0A63B;

  --grad-warm: linear-gradient(135deg, var(--coral) 0%, var(--amber) 55%, var(--gold-light) 100%);
  --grad-cosmic: linear-gradient(135deg, var(--navy) 0%, var(--purple) 55%, var(--coral) 130%);
  --grad-hero: radial-gradient(circle at 15% 15%, rgba(232,99,122,0.35), transparent 45%),
               radial-gradient(circle at 85% 10%, rgba(240,166,59,0.30), transparent 45%),
               radial-gradient(circle at 60% 90%, rgba(107,78,156,0.35), transparent 50%),
               linear-gradient(160deg, #1B2A4A 0%, #2A2456 55%, #3B2A5C 100%);

  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 16px;
  --shadow: 0 14px 34px rgba(27, 42, 74, 0.10);
  --shadow-color: 0 18px 34px -12px rgba(107, 78, 156, 0.35);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================
   EYEBROW / LABELS
   ========================================================== */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: 0.6em;
}

.section-intro { max-width: 640px; margin: 0 auto 2.5rem; color: var(--ink-soft); }

/* ==========================================================
   BOTONES
   ========================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9em 1.8em;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--grad-warm);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(232, 99, 122, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 30px -8px rgba(232, 99, 122, 0.6); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-nav { padding: 0.6em 1.4em; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); position: relative; }
.main-nav a:hover { color: var(--coral); }

/* ==========================================================
   HERO — degradado cósmico con orbes de color
   ========================================================== */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; background: var(--grad-hero); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
  padding-bottom: 70px; position: relative; z-index: 2;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--coral-light), var(--amber) 55%, var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { font-size: 1.1rem; max-width: 46ch; color: rgba(251,247,239,0.85); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; }

.pillars { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.pillar {
  font-size: 0.8rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 0.5em;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 0.5em 1em; border-radius: 100px; backdrop-filter: blur(4px);
}
.pillar:nth-child(1) .pillar-icon { color: var(--coral-light); }
.pillar:nth-child(2) .pillar-icon { color: var(--amber); }
.pillar:nth-child(3) .pillar-icon { color: var(--teal-light); }
.pillar-icon { font-size: 0.6rem; }

.hero-media { position: relative; }
.hero-media img { box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); border: 4px solid rgba(255,255,255,0.08); }
.hero-arc {
  position: absolute; width: 85%; height: 85%; top: -12%; right: -16%;
  background: radial-gradient(circle, rgba(240,166,59,0.45) 0%, transparent 70%);
  z-index: -1; border-radius: 50%; filter: blur(4px);
}
.hero-blob {
  position: absolute; width: 320px; height: 320px; left: -8%; bottom: -12%;
  background: radial-gradient(circle, rgba(107,78,156,0.5) 0%, transparent 70%);
  border-radius: 50%; z-index: 1; filter: blur(10px);
}

.arc-divider {
  height: 64px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  margin-top: -1px; position: relative; z-index: 2;
}
.arc-divider.flip { transform: rotate(180deg); margin-top: 0; margin-bottom: -1px; }

/* ==========================================================
   SOBRE MÍ
   ========================================================== */
.about { background: var(--navy); color: var(--cream); padding: 80px 0 100px; position: relative; overflow: hidden; }
.about::before {
  content: ""; position: absolute; width: 400px; height: 400px; right: -10%; top: -20%;
  background: radial-gradient(circle, rgba(107,78,156,0.35), transparent 70%); border-radius: 50%;
}
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.about .eyebrow { color: var(--teal-light); }
.about h2 { color: var(--white); }
.about p { color: rgba(251, 247, 239, 0.82); }
.about-media img { box-shadow: 0 20px 44px rgba(0,0,0,0.35); border: 4px solid rgba(255,255,255,0.06); }
.about-media { position: relative; }
.about-media::after {
  content: ""; position: absolute; inset: -14px; border: 2px solid var(--gold-light);
  border-radius: calc(var(--radius) + 10px); opacity: 0.5; z-index: -1;
}
.signature { font-family: var(--font-display); font-style: italic; color: var(--gold-light); }

/* ==========================================================
   SERVICIOS — tarjetas con acento de color distinto cada una
   ========================================================== */
.services { padding: 100px 0; }
.services .eyebrow { color: var(--purple); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border-top: 4px solid var(--coral);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-color); }
.service-icon {
  font-size: 1.5rem; margin-bottom: 0.8rem; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center; border-radius: 14px;
  background: rgba(232, 99, 122, 0.12);
}
.service-card p { flex-grow: 1; }
.services-grid .service-card:nth-child(2) { border-top-color: var(--purple); }
.services-grid .service-card:nth-child(2) .service-icon { background: rgba(107, 78, 156, 0.12); }
.services-grid .service-card:nth-child(3) { border-top-color: var(--teal); }
.services-grid .service-card:nth-child(3) .service-icon { background: rgba(47, 166, 160, 0.14); }

/* ==========================================================
   RECURSOS — fondo degradado más vivo
   ========================================================== */
.resources {
  background: linear-gradient(180deg, var(--sage) 0%, #7FA5A0 100%);
  padding: 100px 0; position: relative;
}
.resources .eyebrow { color: var(--navy); }
.resources h2 { color: var(--navy); }
.resources .section-intro { color: rgba(27, 42, 74, 0.75); }
.resources-subhead {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  color: var(--navy); text-align: center; margin: 2.6rem 0 0.6rem;
}
.resources-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.4rem;
}
.resources-grid-books { grid-template-columns: repeat(3, 1fr); }
.resources-note {
  text-align: center; font-size: 0.82rem; color: rgba(27,42,74,0.65);
  margin-top: 2rem; font-style: italic;
}
.resource-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resource-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 22px 40px -14px rgba(27,42,74,0.35); }
.resource-cover img { border-radius: 0; }
.resource-body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.resource-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.32em 0.8em; border-radius: 100px; margin-bottom: 0.7em;
}
.tag-curso { color: var(--teal); background: rgba(47, 166, 160, 0.14); }
.tag-taller { color: var(--coral); background: rgba(232, 99, 122, 0.14); }
.tag-libro { color: var(--purple); background: rgba(107, 78, 156, 0.13); }
.resource-body h3 { font-size: 1.05rem; }
.resource-body p { font-size: 0.9rem; flex-grow: 1; }

/* ==========================================================
   NEWSLETTER / MAILERLITE
   ========================================================== */
.newsletter { background: var(--grad-cosmic); padding: 100px 0; position: relative; overflow: hidden; }
.newsletter::before {
  content: ""; position: absolute; width: 360px; height: 360px; left: -6%; bottom: -18%;
  background: radial-gradient(circle, rgba(240,166,59,0.3), transparent 70%); border-radius: 50%;
}
.newsletter-inner { max-width: 640px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(251, 247, 239, 0.85); }

.mailerlite-container { margin-top: 2rem; }
.fallback-form .form-row { display: flex; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.fallback-form input {
  flex: 1 1 200px; padding: 0.9em 1.1em; border-radius: 100px; border: none;
  font-family: var(--font-body); font-size: 0.95rem;
}
.form-note { font-size: 0.8rem; margin-top: 0.8rem; color: rgba(251, 247, 239, 0.6); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: #14203A; color: rgba(251,247,239,0.7); padding: 40px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
.footer-brand .logo { color: var(--cream); margin: 0; }
.footer-brand p:last-child { font-size: 0.8rem; letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.social-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5em;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(251,247,239,0.7); transition: color 0.15s ease;
}
.social-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(251,247,239,0.35); border-radius: 10px;
  color: var(--gold-light); transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.social-item:nth-child(1) .social-icon:hover, .social-item:nth-child(1):hover .social-icon { border-color: var(--coral); background: rgba(232,99,122,0.18); }
.social-item:nth-child(2):hover .social-icon { border-color: var(--purple-light); background: rgba(107,78,156,0.2); }
.social-item:nth-child(3):hover .social-icon { border-color: var(--teal-light); background: rgba(47,166,160,0.2); }
.social-item:nth-child(4):hover .social-icon { border-color: var(--gold-light); background: rgba(184,146,90,0.2); }
.social-item:nth-child(5):hover .social-icon { border-color: var(--amber); background: rgba(240,166,59,0.2); }
.social-item:hover .social-icon { transform: translateY(-2px); }
.social-item:hover { color: var(--gold-light); }
.footer-legal { display: flex; gap: 1.4rem; font-size: 0.8rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--gold-light); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 320px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(3, 1fr); }
  .resources-grid-books { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .resources-grid, .resources-grid-books { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .about, .services, .resources, .newsletter { padding: 60px 0; }
  .fallback-form .form-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* CORRECCIÓN FINAL MÓVIL */
@media (max-width: 640px) {
  .resources-grid,
  .resources-grid-books {
    grid-template-columns: 1fr !important;
    gap: 1.4rem;
  }

  .resource-card,
  .resource-cover,
  .resource-body {
    width: 100%;
    min-width: 0;
  }

  .resource-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .resource-body h3,
  .resource-body p,
  .resource-body a {
    overflow-wrap: anywhere;
  }

  .resource-body .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.3;
    padding: 0.9rem 1rem;
  }

  .resources .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-row { gap: 0.6rem; }
  .logo { font-size: 1.05rem; }
  .btn-nav { padding: 0.55em 0.9em; font-size: 0.78rem; }
}
