/* ============================================================================
 * The Pet Influencer Mastercourse — Global Styles
 * Paleta: Cocoa Peach (V2, lockeada en branding-mockups-c.html)
 * ============================================================================ */

:root {
  /* Paleta Cocoa Peach (v3 — white BG + cream as accent) */
  --bg:               #FFFFFF;
  --bg-cream:         #F8EFE3;
  --fg:               #3A2418;
  --accent:           #EF8A6E;
  --accent-soft:      #EAD4BF;
  --on-accent:        #FFF8F0;
  --surface:          #FFFFFF;
  --border:           #EAD4BF;
  --muted:            rgba(58, 36, 24, 0.65);
  --muted-strong:     rgba(58, 36, 24, 0.85);

  /* Tipografía (v3 — Playfair Display approved by Denisse 2026-05-09) */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Escalas */
  --fs-xs:            0.8125rem;   /* 13px */
  --fs-sm:            0.9375rem;   /* 15px */
  --fs-base:          1rem;        /* 16px */
  --fs-md:            1.125rem;    /* 18px */
  --fs-lg:            1.5rem;      /* 24px */
  --fs-xl:            2rem;        /* 32px */
  --fs-2xl:           clamp(2rem, 5vw + 1rem, 3.5rem);    /* h2 hero secciones */
  --fs-3xl:           clamp(2.5rem, 7vw + 1rem, 5.5rem);  /* hero h1 */

  /* Espaciado */
  --space-1:          0.25rem;
  --space-2:          0.5rem;
  --space-3:          0.75rem;
  --space-4:          1rem;
  --space-5:          1.5rem;
  --space-6:          2rem;
  --space-8:          3rem;
  --space-10:         4rem;
  --space-12:         6rem;
  --space-16:         8rem;

  /* Radii */
  --radius-sm:        8px;
  --radius-md:        14px;
  --radius-lg:        20px;
  --radius-pill:      999px;

  /* Sombras */
  --shadow-sm:        0 1px 3px rgba(58, 36, 24, 0.08);
  --shadow-md:        0 4px 16px rgba(58, 36, 24, 0.10);
  --shadow-lg:        0 12px 40px rgba(58, 36, 24, 0.14);

  /* Layout */
  --container:        72rem;          /* 1152px */
  --container-narrow: 48rem;          /* 768px (long-form copy) */
  --header-h:         72px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Tipografía ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
em { font-style: italic; color: var(--accent); }

p { margin: 0 0 var(--space-4) 0; }
.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--muted-strong);
  max-width: 35rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-12) 0; }
.section--hero { padding: var(--space-16) 0 var(--space-12); }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
}
.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  font-size: var(--fs-sm);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity .2s;
}
.nav a:hover { opacity: 1; }

/* ─── Footer ─── */
.site-footer {
  margin-top: var(--space-16);
  padding: var(--space-10) 0 var(--space-8);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer p,
.site-footer a {
  font-size: var(--fs-xs);
  color: var(--muted);
}
.site-footer a {
  text-decoration: none;
  margin-right: var(--space-4);
  transition: color .2s;
}
.site-footer a:hover { color: var(--fg); }

/* ─── Buttons ─── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta--primary { background: var(--fg); color: var(--bg); }
.cta--accent  { background: var(--accent); color: var(--on-accent); }
.cta--ghost   { background: transparent; color: var(--fg); border: 1px solid var(--fg); }

/* ─── Cards ─── */
.card {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.card--soft   { background: var(--accent-soft); border-color: transparent; }
.card--accent { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* ─── Forms ─── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.field input {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 138, 110, 0.18);
}

/* ─── Utilities ─── */
.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;
}
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ─── Legal pages ─── */
.legal-content { max-width: 42rem; }
.legal-content .updated {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0 0 var(--space-8) 0;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: var(--space-8) 0 var(--space-3) 0;
  color: var(--fg);
}
.legal-content h3 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-2) 0;
  letter-spacing: 0;
  color: var(--fg);
}
.legal-content p,
.legal-content li {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--muted-strong);
}
.legal-content p { margin: 0 0 var(--space-3) 0; }
.legal-content ul,
.legal-content ol {
  padding-left: var(--space-5);
  margin: 0 0 var(--space-4) 0;
}
.legal-content li { margin-bottom: var(--space-2); }
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--fg); }
.legal-content strong { color: var(--fg); font-weight: 600; }
.legal-content .contact-block {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  font-size: var(--fs-sm);
}
.legal-content .contact-block p:last-child { margin-bottom: 0; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: var(--fs-xs);
}
.legal-content th,
.legal-content td {
  padding: var(--space-3);
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--muted-strong);
}
.legal-content th {
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--fg);
}

/* ─── Cookie consent banner ─── */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(58, 36, 24, 0.08);
  padding: var(--space-4) 0;
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.cookie-consent__text {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--muted-strong);
  margin: 0;
  flex: 1;
  min-width: 240px;
  line-height: 1.6;
}
.cookie-consent__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.cookie-consent__btn {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
}
.cookie-consent__btn--primary {
  background: var(--fg);
  color: var(--bg);
}
.cookie-consent__btn--primary:hover { background: var(--accent); color: var(--on-accent); }
.cookie-consent__btn--secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.cookie-consent__btn--secondary:hover { border-color: var(--fg); }
@media (max-width: 600px) {
  .cookie-consent__inner { flex-direction: column; align-items: stretch; }
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__btn { flex: 1; }
}

/* ─── Promo bar (top) ─── */
.promo-bar {
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.promo-bar a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* ─── Hero split (text left + photo right) ─── */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: var(--space-8) 0;
}
.hero-split__copy h1 {
  font-size: clamp(2.4rem, 3.5vw + 0.3rem, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 var(--space-5);
  color: var(--fg);
}
.hero-split__copy h1 .break-line { display: block; }
.hero-split__copy h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-split__copy .lead { max-width: 32rem; margin: 0 0 var(--space-5); }
.hero-split__photo {
  aspect-ratio: 4/5;
  background: var(--bg-cream);
  overflow: hidden;
}
.hero-split__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}
.signup-form input[type="text"], .signup-form input[type="email"] {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  font: inherit;
  color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.signup-form input[type="text"]:focus, .signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 138, 110, 0.15);
}
.signup-form input[type="submit"] {
  padding: 16px 24px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform .2s, box-shadow .2s;
}
.signup-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(58, 36, 24, 0.15);
}
.signup-microcopy { font-size: var(--fs-xs); color: var(--muted); margin: var(--space-3) 0 0; max-width: 440px; }
.time-line { font-size: var(--fs-sm); color: var(--muted); margin: var(--space-4) 0 var(--space-5); }

/* ─── Event details strip ─── */
.event-strip {
  background: var(--bg-cream);
  padding: var(--space-6) 0;
}
.event-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: space-around;
  align-items: center;
}
.event-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--muted-strong);
}
.event-strip__icon { font-size: 1.5rem; }

/* ─── Is this for you (✅/❌ split) ─── */
.split-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.split-2col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-4);
}
.split-2col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.split-2col li {
  font-size: var(--fs-base);
  line-height: 1.55;
  padding-left: var(--space-6);
  position: relative;
  color: var(--muted-strong);
}
.split-2col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
}
.split-2col .check li::before { content: "✓"; color: #6B8E5A; font-weight: 700; }
.split-2col .ex li::before { content: "✗"; color: #B85C50; font-weight: 700; }

/* ─── 4 pillars grid ─── */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.pillar {
  padding: var(--space-6);
  background: var(--bg-cream);
  border-radius: var(--radius-md);
}
.pillar__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
.pillar p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted-strong);
  margin: 0;
}

/* ─── About split (photo + bio) ─── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-10);
  align-items: start;
}
.about-split__photo {
  aspect-ratio: 2/3;
  background: var(--bg-cream);
  overflow: hidden;
}
.about-split__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-split__bio h2 { margin-bottom: var(--space-5); }
.about-split__bio p {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--muted-strong);
  margin: 0 0 var(--space-4);
}
.about-split__bio .signature {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--fg);
  margin-top: var(--space-5);
}

/* ─── FAQ list ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-6);
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 0 var(--space-5);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--muted-strong);
  max-width: 38rem;
}

/* ─── Final CTA block ─── */
.cta-block {
  background: var(--bg-cream);
  padding: var(--space-12) 0;
  text-align: center;
  margin-top: var(--space-12);
}
.cta-block h2 { margin-bottom: var(--space-4); }
.cta-block .lead { margin: 0 auto var(--space-6); }
.cta-block .signup-form { margin: 0 auto; }
.cta-block .signup-microcopy { margin: var(--space-3) auto 0; }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .nav { display: none; }
  .section { padding: var(--space-8) 0; }
  .section--hero { padding: var(--space-10) 0 var(--space-8); }
  .site-footer__inner { flex-direction: column; }
  .hero-split { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-6) 0 var(--space-8); }
  .hero-split__photo { order: -1; aspect-ratio: 4/5; }
  .hero-split__copy h1 { font-size: 2.4rem; }
  .split-2col { grid-template-columns: 1fr; gap: var(--space-6); }
  .pillars-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .about-split { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-split__photo { order: -1; }
  .event-strip__inner { flex-direction: column; align-items: flex-start; }
}
