/* Fuentes auto-hospedadas (subset latin) — sin Google Fonts */
@font-face{font-family:'DM Serif Display';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/dm-serif-display-latin.woff2) format('woff2');}
@font-face{font-family:'DM Serif Display';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/dm-serif-display-latin-italic.woff2) format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url(fonts/dm-sans-latin.woff2) format('woff2');}
@font-face{font-family:'DM Sans';font-style:italic;font-weight:100 1000;font-display:swap;src:url(fonts/dm-sans-latin-italic.woff2) format('woff2');}

/* ============================================================
   Mayrena Barraza — sistema de diseño
   Editorial premium · femenino · ejecutivo
   ============================================================ */

:root {
  --wine: #260309;
  --wine-soft: #3A0A12;
  --cream: #EDE1CE;
  --cream-light: #FAFAF8;
  --rose: #ECA2A8;
  --deep-red: #A11F22;
  --accent: #BF3054;
  --blush: #F9EBF2;
  --border: #F0DCE6;
  --text: #260309;
  --text-soft: #6F5F5F;
  --text-muted: #999999;
  --white: #FFFFFF;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 80px rgba(38, 3, 9, 0.08);
  --shadow-card: 0 14px 50px rgba(38, 3, 9, 0.06);

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream-light);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--rose); color: var(--wine); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 72px;
  padding-right: 72px;
}

.section { padding-top: 112px; padding-bottom: 112px; }
.section--tight { padding-top: 80px; padding-bottom: 80px; }
.bg-wine { background: var(--wine); color: var(--cream-light); }
.bg-cream { background: var(--cream); }
.bg-blush { background: var(--blush); }
.bg-light { background: var(--cream-light); }
.bg-red { background: var(--deep-red); color: #fff; }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display em, .h2 em, .h3 em, .quote em {
  font-style: italic;
  color: var(--accent);
}
.bg-wine .display em, .bg-wine .h2 em, .bg-wine .quote em { color: var(--rose); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.bg-wine .eyebrow { color: var(--rose); }

.lead {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.68;
  color: var(--text-soft);
  max-width: 56ch;
}
.bg-wine .lead { color: rgba(237, 225, 206, 0.78); }

.muted { color: var(--text-soft); }
.bg-wine .muted { color: rgba(237, 225, 206, 0.66); }

.quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--deep-red); color: #fff; }
.btn--primary:hover { background: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--rose); background: var(--blush); }

.bg-wine .btn--ghost { color: var(--cream-light); border-color: rgba(237,225,206,0.28); }
.bg-wine .btn--ghost:hover { border-color: var(--rose); background: rgba(255,255,255,0.05); }

/* ghost button over the dark hero photo */
.hero--bg .btn--ghost { color: var(--cream-light); border-color: rgba(237,225,206,0.55); background: rgba(38,3,9,0.28); }
.hero--bg .btn--ghost:hover { border-color: var(--rose); background: rgba(38,3,9,0.5); }

.btn--light { background: var(--cream-light); color: var(--wine); }
.btn--light:hover { background: #fff; }

.btn--onred { background: #fff; color: var(--deep-red); }
.btn--onred:hover { background: var(--wine); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  transition: gap 200ms var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 14px; }
.bg-wine .link-arrow { color: var(--rose); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease),
    border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--cream-light);
  transition: color 300ms var(--ease);
  white-space: nowrap;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(237, 225, 206, 0.82);
  transition: color 200ms var(--ease);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--rose);
  transition: width 220ms var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream-light); }

.header-cta { display: flex; align-items: center; gap: 14px; }

/* scrolled state */
.site-header.scrolled {
  background: rgba(250, 250, 248, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}
.site-header.scrolled .brand { color: var(--wine); }
.site-header.scrolled .nav a { color: var(--text-soft); }
.site-header.scrolled .nav a:hover,
.site-header.scrolled .nav a[aria-current="page"] { color: var(--wine); }

/* header on light pages (no dark hero) */
.site-header.on-light {
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}
.site-header.on-light .brand { color: var(--wine); }
.site-header.on-light .nav a { color: var(--text-soft); }
.site-header.on-light .nav a:hover,
.site-header.on-light .nav a[aria-current="page"] { color: var(--wine); }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--cream-light);
}
.site-header.scrolled .burger, .site-header.on-light .burger { color: var(--wine); }
.burger svg { width: 26px; height: 26px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--wine);
  color: var(--cream-light);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 40px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 420ms var(--ease), opacity 420ms var(--ease), visibility 420ms;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu__top {
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu .brand { color: var(--cream-light); }
.mobile-close {
  width: 44px; height: 44px; background: none; border: 0;
  color: var(--cream-light); cursor: pointer;
}
.mobile-close svg { width: 28px; height: 28px; }
.mobile-nav {
  margin-top: auto; margin-bottom: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav a {
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--cream-light);
  opacity: 0;
  transform: translateY(18px);
}
.mobile-menu.open .mobile-nav a {
  animation: menuIn 520ms var(--ease) forwards;
}
.mobile-nav a:nth-child(1) { animation-delay: 80ms; }
.mobile-nav a:nth-child(2) { animation-delay: 130ms; }
.mobile-nav a:nth-child(3) { animation-delay: 180ms; }
.mobile-nav a:nth-child(4) { animation-delay: 230ms; }
.mobile-nav a:nth-child(5) { animation-delay: 280ms; }
.mobile-nav a:nth-child(6) { animation-delay: 330ms; }
.mobile-nav a:nth-child(7) { animation-delay: 380ms; }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.mobile-menu .btn { width: 100%; }

body.menu-open { overflow: hidden; }

/* ---------- Cards ---------- */
.card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 36px;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease),
    box-shadow 300ms var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--rose);
  box-shadow: var(--shadow-card);
}
.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--cream-light);
}
.card--dark:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--rose);
  box-shadow: none;
}

.card-index {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.bg-wine .card-index { color: var(--rose); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Empresas cards: alinear el enlace al fondo de cada tarjeta */
[data-screen-label="Empresas"] .card { display: flex; flex-direction: column; }
[data-screen-label="Empresas"] .card .link-arrow { margin-top: auto; }

/* ---------- Gallery strip (En escenario) ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-strip figure {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1010;
  aspect-ratio: 3 / 2;
}
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-strip figure:hover img { transform: scale(1.04); }
.gallery-strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 18px 15px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 2, 6, 0.82), rgba(20, 2, 6, 0));
}
.gallery-strip figcaption strong { font-weight: 600; }
@media (max-width: 980px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-strip { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(237, 225, 206, 0.66);
  max-width: 18ch;
}
.stat--light .stat__label { color: var(--text-soft); }

/* ---------- Section heading block ---------- */
.head-block { max-width: 64ch; }
.head-block .lead { margin-top: 22px; }

/* ---------- Pills / tags ---------- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--blush);
  border: 1px solid var(--border);
}

/* ---------- Lists with check ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--text-soft);
}
.ticks li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.bg-wine .ticks li { color: rgba(237,225,206,0.8); }
.bg-wine .ticks li svg { color: var(--rose); }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine); color: var(--cream-light); padding: 88px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; }
.footer-tag { margin-top: 16px; max-width: 30ch; color: rgba(237,225,206,0.7); font-size: 15px; }
.footer-seal {
  margin-top: 26px; font-style: italic; font-family: var(--serif);
  font-size: 18px; color: var(--rose);
}
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose); margin: 0 0 18px; font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 15px; color: rgba(237,225,206,0.78); transition: color 180ms var(--ease); }
.footer-col a:hover { color: var(--cream-light); }
.footer-bottom {
  margin-top: 64px; padding-top: 26px;
  border-top: 1px solid rgba(237,225,206,0.14);
  font-size: 13px; color: rgba(237,225,206,0.55);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Hero ---------- */
.hero {
  background: var(--wine);
  color: var(--cream-light);
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 96px;
}
.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,162,168,0.22), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__glow--a { top: -180px; right: -120px; }
.hero__glow--b { bottom: -260px; left: -160px; background: radial-gradient(circle, rgba(191,48,84,0.20), transparent 62%); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero__photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(38,3,9,0.42));
}
.hero__badge {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  background: rgba(38,3,9,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(237,225,206,0.2);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream-light);
}
.hero__badge strong { color: var(--rose); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* hero con imagen a fondo completo */
.hero--bg {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 88px;
}
.hero--bg .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--bg .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 38%;
}
.hero--bg .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38,3,9,0.97) 0%, rgba(38,3,9,0.93) 42%, rgba(38,3,9,0.68) 64%, rgba(38,3,9,0.32) 90%, rgba(38,3,9,0.12) 100%),
    linear-gradient(0deg, rgba(38,3,9,0.82) 0%, rgba(38,3,9,0.3) 30%, transparent 52%);
}
.hero--bg .container { position: relative; z-index: 1; }
.hero-content { max-width: 600px; }
.hero--bg .hero-content .display,
.hero--bg .hero-content .lead { text-shadow: 0 2px 28px rgba(38,3,9,0.55); }

.mono-note {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(237,225,206,0.5);
}

/* hero entrance */
.hero .anim { opacity: 0; transform: translateY(20px); animation: heroUp 0.8s var(--ease) forwards; }
.hero .anim.d1 { animation-delay: 0.05s; }
.hero .anim.d2 { animation-delay: 0.18s; }
.hero .anim.d3 { animation-delay: 0.31s; }
.hero .anim.d4 { animation-delay: 0.44s; }
.hero .anim.d5 { animation-delay: 0.57s; }
.hero .anim.dphoto { animation-delay: 0.25s; }
@keyframes heroUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Page hero (interior, light) ---------- */
.page-hero { padding-top: 168px; padding-bottom: 88px; }
.page-hero .display { font-size: clamp(44px, 6.5vw, 84px); }

/* ---------- Quote card ---------- */
.quote-card {
  background: var(--wine);
  color: var(--cream-light);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.quote-card .mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.6;
  color: var(--rose);
  opacity: 0.5;
  display: block;
  height: 50px;
}

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.tl-item:last-child { border-bottom: 1px solid var(--border); }
.tl-step { font-family: var(--serif); font-size: 28px; color: var(--rose); line-height: 1; }
.tl-text { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; letter-spacing: -0.01em; max-width: 60ch; }

/* ---------- Article cards ---------- */
.article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  height: 100%;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.article:hover { transform: translateY(-6px); border-color: var(--rose); box-shadow: var(--shadow-card); }
.article__title { font-family: var(--serif); font-size: 23px; line-height: 1.12; letter-spacing: -0.02em; }
.article__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(236,162,168,0.18);
}
.field .error { font-size: 12px; color: var(--deep-red); display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--deep-red); }
.form-success {
  display: none;
  background: var(--blush);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  color: var(--wine);
  font-size: 15px;
}
.form-success.show { display: block; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 16px; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 34px; }
.mt-l { margin-top: 56px; }
.center { text-align: center; }
.center .eyebrow, .center .lead { margin-left: auto; margin-right: auto; }
.center .lead { text-align: center; }
.maxw-sm { max-width: 720px; }
.flow-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__photo { max-width: 440px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: inline-flex; }
}

@media (max-width: 860px) {
  .container { padding-left: 40px; padding-right: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 70px 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .hero { padding-top: 128px; }
  .hero--bg { min-height: 90vh; }
  .hero--bg .hero__bg img { object-position: 64% center; }
  .hero--bg .hero__bg::after {
    background:
      linear-gradient(0deg, rgba(38,3,9,0.96) 8%, rgba(38,3,9,0.78) 48%, rgba(38,3,9,0.6) 100%);
  }
  .display { font-size: 46px; line-height: 1; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > *, .hero .anim, .mobile-nav a { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   SOBRE MÍ · retrato enmarcado (.portrait-frame)
   (estilos por página, originalmente inline en sobre-mi.html)
   ============================================================ */
.portrait-frame {
  position: relative;
  margin: 0;
  isolation: isolate;
}
/* offset accent block behind the photo */
.portrait-frame__accent {
  position: absolute;
  inset: 0;
  transform: translate(26px, 26px);
  border-radius: 24px;
  background: var(--wine);
  z-index: -1;
  transition: transform 600ms var(--ease);
}
.portrait-frame__media {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.portrait-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.02);
  transition: transform 900ms var(--ease), filter 600ms var(--ease);
  filter: saturate(1.02) contrast(1.02);
}
/* tonal sheen so the photo reads as part of the brand, not a flat paste-in */
.portrait-frame__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(150deg, rgba(236,162,168,0.16) 0%, rgba(38,3,9,0) 42%),
    linear-gradient(20deg, rgba(38,3,9,0.42) 0%, rgba(38,3,9,0) 46%);
  mix-blend-mode: multiply;
  transition: opacity 600ms var(--ease);
}
.portrait-frame:hover .portrait-frame__accent { transform: translate(16px, 16px); }
.portrait-frame:hover .portrait-frame__media img { transform: scale(1.07); }
.portrait-frame:hover .portrait-frame__sheen { opacity: 0.7; }

@media (max-width: 720px) {
  .portrait-frame__accent { transform: translate(16px, 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-frame__media img,
  .portrait-frame__accent,
  .portrait-frame__sheen { transition: none; }
}

/* ============================================================
   AGENDA · slot de Calendly (.calendly-slot)
   (estilos por página, originalmente inline en agenda.html)
   ============================================================ */
.calendly-slot {
  border:2px dashed var(--border);
  border-radius:24px;
  background:
    repeating-linear-gradient(135deg, rgba(236,162,168,0.06) 0 14px, transparent 14px 28px);
  min-height:420px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:48px 24px; gap:14px;
}
.calendly-slot .mono { font-family:var(--sans); font-size:12px; letter-spacing:0.18em; text-transform:uppercase; color:var(--text-muted); }
.calendly-slot .cal-title { font-family:var(--serif); font-size:clamp(24px,3vw,34px); color:var(--wine); letter-spacing:-0.02em; }

/* ============================================================
   IDEAS · filtros, grid de artículos y muro de eventos
   (estilos por página, originalmente inline en ideas.html)
   ============================================================ */
.filters { display:flex; flex-wrap:wrap; gap:10px; }
.filter-btn {
  font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:0.02em;
  padding:9px 16px; border-radius:999px; border:1px solid var(--border);
  background:#fff; color:var(--text-soft); cursor:pointer;
  transition:all 180ms var(--ease);
}
.filter-btn:hover { border-color:var(--rose); color:var(--wine); }
.filter-btn.active { background:var(--wine); color:var(--cream-light); border-color:var(--wine); }
.articles-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:860px){ .articles-grid{ grid-template-columns:1fr; } }
.article.hide { display:none; }

/* Eventos */
.part-nav { display:flex; gap:10px; flex-wrap:wrap; margin-top:26px; }
.part-nav a {
  font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:0.02em;
  padding:9px 18px; border-radius:999px; border:1px solid var(--border);
  color:var(--text-soft); transition:all 180ms var(--ease);
}
.part-nav a:hover { border-color:var(--rose); color:var(--wine); }
.event-wall { columns:3; column-gap:16px; }
.event-wall figure {
  margin:0 0 16px; break-inside:avoid; border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-card); background:var(--cream); position:relative;
}
.event-wall img {
  width:100%; display:block; transition:transform 600ms var(--ease);
}
.event-wall figure:hover img { transform:scale(1.04); }
@media (max-width:860px){ .event-wall{ columns:2; } }
@media (max-width:560px){ .event-wall{ columns:1; } }
.event-cta { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:44px; }
.event-cta .note { font-size:14px; color:var(--text-soft); max-width:34ch; }
.btn--whatsapp { background:#1FA855; color:#fff; }
.btn--whatsapp:hover { background:#178f48; }
