/* ===================================================================
   La Mann Tattoo — sistema de diseño (basado en el manual de marca real)
   Paleta: Negro #0A0A0A · Hueso #F0EDE6 · Gris piedra #8C8880 · Dorado suave #C7B48A
   Tipografía: Cinzel Decorative (wordmark) + Cinzel (títulos/caps) + Inter (cuerpo)
   Firma visual: fila de "historias destacadas" circulares + marcos de esquina dorados
   =================================================================== */

:root {
  --black: #0A0A0A;
  --black-soft: #141210;
  --bone: #F0EDE6;
  --bone-dim: #C9C4B8;
  --stone: #8C8880;
  --gold: #C7B48A;
  --gold-dim: #9C8B63;

  --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-caps: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-caps);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

h1, h2, h3 { font-weight: 500; margin: 0; color: var(--bone); }
h2 { font-family: var(--font-caps); font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; letter-spacing: 0.01em; }
h3 { font-family: var(--font-caps); font-size: 18px; letter-spacing: 0.02em; }
p { color: var(--bone-dim); }

.btn {
  display: inline-block;
  font-family: var(--font-caps);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid var(--gold);
  border-radius: 1px;
  transition: all .2s ease;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--bone); border-color: var(--bone); }
.btn-ghost { background: transparent; color: var(--bone); }
.btn-ghost:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* Marco de esquina dorado — motivo recurrente del manual de marca (sello, tarjetas, plantillas) */
.corner-frame {
  position: relative;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim)),
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim)),
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim)),
    linear-gradient(var(--gold-dim), var(--gold-dim)), linear-gradient(var(--gold-dim), var(--gold-dim));
  background-size: 13px 1px, 1px 13px, 13px 1px, 1px 13px, 13px 1px, 1px 13px, 13px 1px, 1px 13px;
  background-position:
    10px 10px, 10px 10px,
    right 10px top 10px, right 10px top 10px,
    left 10px bottom 10px, left 10px bottom 10px,
    right 10px bottom 10px, right 10px bottom 10px;
}
.corner-frame::before, .corner-frame::after { content: none; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw;
  border-bottom: 1px solid rgba(199,180,138,0.18);
}
/* El desenfoque va en una capa separada (::before) en vez de directo en .site-header:
   así el header NO se convierte en "containing block" de sus hijos position:fixed
   (bug real de Safari/iOS: backdrop-filter en un ancestro corta el menú móvil fijo). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 42px; width: auto; display: block; }
.brand-logo-img.small { height: 34px; }
.brand-text { font-family: var(--font-caps); font-size: 15px; letter-spacing: 0.14em; line-height: 1.1; }
.brand-text em { display: block; font-style: normal; font-size: 9px; letter-spacing: 0.3em; color: var(--gold); margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none; color: var(--bone-dim);
  font-family: var(--font-caps); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold); padding: 9px 18px; border-radius: 1px; color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--black) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 1px; background: var(--gold); }

/* Evita que la página de fondo haga scroll mientras el menú móvil está abierto */
html.nav-open, body.nav-open { overflow: hidden; height: 100%; }

/* Oculta visualmente el h1 (queda solo para lectores de pantalla / SEO), ya que el
   título real se muestra como imagen (logo-lockup.png) */
.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;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 14vh 5vw 10vh;
  min-height: 82vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(199,180,138,0.07), transparent 55%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero-logo-img { max-width: 360px; width: 78vw; height: auto; margin: 0 auto 44px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ===================== HIGHLIGHTS (historias destacadas) ===================== */
.highlights {
  display: flex; justify-content: center; gap: 34px; flex-wrap: wrap;
  padding: 6vh 5vw 8vh; border-bottom: 1px solid rgba(199,180,138,0.15);
}
.highlight { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 74px; }
.highlight-circle {
  width: 66px; height: 66px; border-radius: 50%;
  border: 1px solid var(--gold-dim); outline: 1px solid rgba(199,180,138,0.25); outline-offset: 3px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, transform .2s ease;
}
.highlight-circle svg { width: 26px; height: 26px; }
.highlight-circle path, .highlight-circle rect, .highlight-circle circle {
  fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.highlight:hover .highlight-circle { border-color: var(--gold); transform: translateY(-3px); }
.highlight:hover .highlight-circle path, .highlight:hover .highlight-circle rect, .highlight:hover .highlight-circle circle { stroke: var(--gold); }
.highlight-label { font-family: var(--font-caps); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }

/* ===================== SECTIONS ===================== */
.section { padding: 12vh 5vw; }
.section-alt { background: var(--black-soft); }
.section-title { margin-bottom: 46px; }
.section-note { font-size: 14px; color: var(--stone); margin-top: -30px; margin-bottom: 40px; }

.section-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; padding: 50px; }
.section-body p { max-width: 560px; }

.stat-row { display: flex; gap: 48px; margin-top: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--gold); }
.stat-label { font-family: var(--font-caps); font-size: 11px; color: var(--stone); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ===================== SERVICIOS ===================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(199,180,138,0.15); border: 1px solid rgba(199,180,138,0.15); }
.service-card { background: var(--black-soft); padding: 44px 34px; transition: background .2s ease; }
.service-card:hover { background: #1B1815; }
.service-icon { width: 38px; height: 38px; margin-bottom: 24px; }
.service-icon path, .service-icon circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 14.5px; margin: 0; }

/* ===================== PASOS (agenda) ===================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { padding: 40px 30px; border: 1px solid rgba(199,180,138,0.15); }
.step-card h3 { margin: 0 0 10px; }
.step-card p { font-size: 14.5px; margin: 0; }
.step-card strong { color: var(--gold); }
.agenda-step-icon {
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%; margin-bottom: 22px;
  border: 1px solid var(--gold-dim); outline: 1px solid rgba(199,180,138,0.25); outline-offset: 3px;
}
.agenda-step-icon svg { width: 28px; height: 28px; }
.agenda-step-icon path, .agenda-step-icon rect, .agenda-step-icon circle {
  fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ===================== CUIDADOS ===================== */
.care-grid { max-width: none; }
.care-grid .steps-grid { margin-top: 30px; }

/* ===================== FAQ ===================== */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid rgba(199,180,138,0.18); padding: 20px 0; }
.faq-item summary {
  cursor: pointer; font-family: var(--font-caps); font-size: 15px; letter-spacing: 0.02em;
  color: var(--bone); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 20px; margin-left: 20px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 16px 0 0; font-size: 14.5px; max-width: 600px; }

/* ===================== CONTACTO ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-intro { max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid rgba(199,180,138,0.15); font-size: 15px; }
.contact-label { display: inline-block; width: 110px; font-family: var(--font-caps); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--stone); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--gold); }

.hours-table { border-collapse: collapse; font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.02em; margin-top: 10px; }
.hours-table td { padding: 7px 22px 7px 0; color: var(--stone); }
.hours-table td:first-child { color: var(--bone); }

.contact-map {
  padding: 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: var(--black-soft); border: 1px solid rgba(199,180,138,0.15);
}
.contact-map svg { width: 100%; max-width: 240px; }
.contact-map path { fill: none; stroke: var(--stone); stroke-width: 1.2; }
.contact-map circle { fill: var(--gold); stroke: none; }
.contact-map p { font-family: var(--font-caps); font-size: 11.5px; margin: 0; letter-spacing: 0.04em; }

/* ===================== FOOTER ===================== */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  padding: 44px 5vw; border-top: 1px solid rgba(199,180,138,0.15);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-wordmark { font-family: var(--font-caps); font-size: 14px; letter-spacing: 0.14em; margin: 0; }
.footer-wordmark em { font-style: normal; color: var(--gold); }
.footer-copy { font-size: 12px; margin: 4px 0 0; color: var(--stone); }
.footer-links { display: flex; gap: 26px; font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.05em; }
.footer-links a { text-decoration: none; color: var(--stone); }
.footer-links a:hover { color: var(--gold); }
.footer-admin { opacity: 0.5; font-size: 10.5px; }

/* ===================== REVEAL ON SCROLL ===================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .section-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-grid { padding: 30px 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .highlights { gap: 22px; }
  .highlight { width: 64px; }
  .highlight-circle { width: 56px; height: 56px; }

  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .site-nav {
    position: fixed; top: 0; right: 0; left: auto; bottom: 0;
    width: min(320px, 82vw);
    background: var(--black-soft);
    border-left: 1px solid rgba(199,180,138,0.3);
    box-shadow: -24px 0 60px rgba(0,0,0,0.55);
    flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 24px; transform: translateX(100%);
    transition: transform .3s ease; font-size: 16px;
    z-index: 95;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-cta { margin-top: 8px; }

  .nav-scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 90;
  }
  .nav-scrim.is-visible { opacity: 1; pointer-events: auto; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .highlights { gap: 16px; }
  .highlight { width: 56px; }
  .highlight-circle { width: 50px; height: 50px; }
  .highlight-circle svg { width: 20px; height: 20px; }
  .agenda-step-icon { width: 56px; height: 56px; margin-bottom: 18px; }
  .agenda-step-icon svg { width: 24px; height: 24px; }
}
