/* ===================================================================
   TDAH en Femenino — hoja de estilos
   Paleta:
     --beige       #e8e2d6  (fondo claro)
     --purple      #9c82c7  (fondo/acento morado)
     --ink         #4f3b5c  (títulos y texto principal)
     --terracotta  #b85c38  (destacados)
     --gold        #c79a2b  (destacados)
   =================================================================== */

:root {
  --beige: #e8e2d6;
  --purple: #9c82c7;
  --ink: #4f3b5c;
  --terracotta: #b85c38;
  --gold: #c79a2b;

  --beige-soft: #f2eee6;
  --ink-soft: #6b5578;
  --white: #ffffff;

  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 14px 40px rgba(79, 59, 92, 0.14);
  --shadow-sm: 0 6px 18px rgba(79, 59, 92, 0.10);
  --container: 1120px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.4em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--terracotta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ink); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.highlight { color: var(--terracotta); }
.highlight-alt { color: var(--gold); }

.section { padding: 88px 0; }
.section-alt { background: var(--beige-soft); }

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--white); }

.btn-block { width: 100%; margin-top: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 226, 214, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(79, 59, 92, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo { display: inline-flex; align-items: baseline; gap: 0.4rem; color: var(--ink); }
.logo-mark {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.logo-text {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--terracotta);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.nav-menu a { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.nav-menu a:hover { color: var(--terracotta); }
.nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(156, 130, 199, 0.35) 0%, rgba(156, 130, 199, 0) 55%),
    var(--beige);
  padding: 80px 0 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-content .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: var(--purple);
  color: var(--white);
  padding: 40px 34px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 320px;
  text-align: center;
  transform: rotate(-2deg);
}
.hero-card p { margin: 0; font-size: 1.05rem; }
.hero-card .hero-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.9rem;
}

/* ---------- Sobre mí ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: stretch;
}
.about-photo { height: 100%; }
.about-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
}
.about-lead { font-size: 1.12rem; color: var(--ink); }
.about-closing { font-size: 1.08rem; }
.about-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  grid-column: 1 / -1;
  margin-top: 8px;
}
.role-card {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.role-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.role-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.4rem;
}
.role-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Features (El TDAH) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 4px solid var(--purple);
}
.feature-icon { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- Productos ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card.featured {
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}
.product-badge {
  align-self: flex-start;
  background: var(--beige);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.product-card.featured .product-badge { background: var(--gold); color: var(--white); }
.product-card p { color: var(--ink-soft); }
.product-closing strong { color: var(--terracotta); }
.read-more {
  display: none;
  align-self: flex-start;
  padding: 0;
  margin: 0 0 1.1rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--terracotta);
  cursor: pointer;
}
.read-more:hover { text-decoration: underline; }
html.js .read-more { display: inline-block; }
html.js .product-desc {
  position: relative;
  overflow: hidden;
  max-height: 6.5em;
  transition: max-height var(--transition);
}
html.js .product-desc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.6em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
  transition: opacity var(--transition);
}
html.js .product-desc.expanded {
  max-height: 60em;
}
html.js .product-desc.expanded::after { opacity: 0; }
.product-price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0.4rem 0 1.4rem;
}
.products-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-inline: auto;
}
.product-media {
  margin: -32px -28px 22px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.badge-free { background: var(--gold); color: var(--white); }
.product-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--beige-soft);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--purple);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-inner p { color: rgba(255, 255, 255, 0.9); max-width: 46ch; margin: 0 auto 1.8rem; }

/* ---------- Contacto ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), color var(--transition);
}
.social:hover { transform: translateY(-3px); color: var(--terracotta); }
.social-icon { width: 20px; height: 20px; display: block; flex-shrink: 0; }

/* ---------- Blog: listado ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.post-card-title { font-size: 1.4rem; margin: 0 0 0.6rem; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--terracotta); }
.post-excerpt { color: var(--ink-soft); margin: 0 0 1.2rem; }
.post-more { font-weight: 700; margin-top: auto; align-self: flex-start; }

/* ---------- Blog: artículo ---------- */
.post-container { max-width: 720px; }
.post-back { font-weight: 700; display: inline-block; }
.post-header { margin: 1.6rem 0 2rem; }
.post-header h1 { margin: 0.4rem 0 0; }
.post-body { font-size: 1.08rem; }
.post-body p { margin: 0 0 1.3rem; }
.post-body ul { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.post-body li { margin-bottom: 0.5rem; color: var(--ink-soft); }
.post-body strong { color: var(--ink); }
.post-highlight {
  background: var(--beige-soft);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
}
.post-footer { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(79, 59, 92, 0.12); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--beige);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.logo-footer .logo-mark { color: var(--beige); }
.logo-footer .logo-text { color: var(--gold); }
.footer-note { color: rgba(232, 226, 214, 0.7); font-size: 0.9rem; margin: 0; max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--beige);
    padding: 10px 24px 20px;
    border-bottom: 1px solid rgba(79, 59, 92, 0.12);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 8px 0; }
  .nav-cta { text-align: center; }

  .hero-inner,
  .about-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-content .lead { max-width: none; }
  .about-photo,
  .about-photo img { height: auto; }

  .features,
  .products { grid-template-columns: 1fr; }

  .section { padding: 62px 0; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
