/* ================================================================
   DRA. ANDREA AMAYA ARZAGA · estilos compartidos (inicio, reserva, gracias)
   Dirección: editorial cálida. Petróleo profundo = ciencia y calma;
   arena = cercanía; terracota = voz, calidez, acción.
   ================================================================ */
:root {
  --ink: #1D2B2D;
  --ink-2: #4E5E60;
  --ink-3: #8A9798;
  --petrol: #24605B;
  --petrol-2: #CFE2DD;
  --petrol-3: #EAF2EF;
  --bg: #F6F1E9;
  --bg-2: #EFE7DB;
  --card: #FFFDF9;
  --line: #E3D9CB;
  --clay: #C8643E;
  --clay-ink: #9E4A2B;
  --clay-2: #F3D8C8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-hero: clamp(2.7rem, 1.6rem + 4.6vw, 5.4rem);
  --text-h2: clamp(2rem, 1.5rem + 2.2vw, 3.3rem);
  --space-section: clamp(4.5rem, 3rem + 5vw, 8rem);

  --r-md: 14px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;
  --shadow-sm: 0 2px 10px rgba(29, 43, 45, .06);
  --shadow-md: 0 14px 40px rgba(29, 43, 45, .10);
  --shadow-lg: 0 30px 70px rgba(29, 43, 45, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: 300ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Grano suave: textura de papel, no de plantilla */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
.site-header { padding: 20px 0; position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.wordmark b { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.wordmark b i { font-style: italic; color: var(--petrol); }
.wordmark small { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--ink-2); position: relative; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-full); border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), background var(--dur), color var(--dur);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-clay { background: var(--clay); color: #fff; box-shadow: 0 8px 22px rgba(200, 100, 62, .28); }
.btn-clay:hover { background: var(--clay-ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200, 100, 62, .34); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--petrol); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* ============ TIPOGRAFÍA ============ */
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--clay-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--clay); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 450; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--petrol); font-weight: 400; }
h2 { font-size: var(--text-h2); line-height: 1.02; margin-top: 14px; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 540px; }

/* ============ FOOTER ============ */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink-3); font-size: 13.5px; flex-wrap: wrap; }
.powered { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .03em; }
.powered svg { width: 13px; height: auto; }
.powered strong { color: var(--ink-2); font-weight: 600; }

/* ============ MOVIMIENTO ============ */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .26s; } .d4 { animation-delay: .36s; }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .wordmark b { font-size: 19px; }
  .site-header .btn { padding: 11px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
