/* E. Canto — propuesta de diseño. Clásico, elegante, de barrio. Mobile first. */
:root {
  --ivory: #FAF7F2;
  --ivory-2: #F3EDE3;
  --black: #1A1A1A;
  --champagne: #CDB38B;      /* decorativo / texto sobre negro */
  --champagne-ink: #7A6340;  /* texto pequeño sobre marfil (AA) */
  --text: #1A1A1A;
  --muted: #4A4642;
  --line: #E2D8C7;
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* espacio para la barra móvil */
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--black); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-size: clamp(2.1rem, 8vw, 3.2rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 680px; }
.center { text-align: center; margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--ivory); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; }

.eyebrow {
  font: 500 .78rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--champagne-ink); margin-bottom: 14px;
}
.orn { width: 120px; height: 12px; color: var(--champagne); margin: 6px auto 0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 0;
  font: 500 .9rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--black); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--dark { background: var(--black); color: var(--ivory); }
.btn--dark:hover { background: transparent; color: var(--black); }
.btn--line { background: transparent; color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--ivory); }
.btn--lg { min-height: 56px; padding: 14px 30px; }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: .8rem; }

/* Cabecera */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(250,247,242,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.header.scrolled { border-color: var(--line); background: rgba(250,247,242,.97); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--black); text-decoration: none; }
.logo__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--champagne); outline: 1px solid var(--champagne); outline-offset: 2px;
  font: italic 500 1.05rem var(--serif); color: var(--black);
}
.logo__text { font: 600 1.45rem/1 var(--serif); letter-spacing: .04em; }

.menu-btn {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.menu-btn span { width: 24px; height: 1.5px; background: var(--black); transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto; display: flex; flex-direction: column;
  padding: 12px 22px 28px; background: var(--ivory); border-bottom: 1px solid var(--line);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a:not(.btn) {
  color: var(--black); text-decoration: none; padding: 14px 2px;
  font: 500 1.35rem var(--serif); border-bottom: 1px solid var(--line);
}
.nav a:not(.btn):hover { color: var(--champagne-ink); }
.nav .btn { margin-top: 20px; }

/* Portada */
.hero { padding: calc(var(--header-h) + 28px) 0 64px; }
.hero__inner { display: flex; justify-content: center; }
.frame { position: relative; width: 100%; max-width: 560px; padding: 64px 28px 56px; text-align: center; }
.frame__svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.frame__corner { position: absolute; width: 46px; height: 46px; pointer-events: none; background: var(--ivory); }
.frame__corner--tl { top: 0; left: 0; }
.frame__corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.frame__corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.frame__corner--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.frame__content { position: relative; }
.sunburst { width: 110px; height: auto; margin: 0 auto 22px; }
.hero__title { font-size: clamp(3.4rem, 17vw, 6.5rem); font-weight: 500; margin: 0; letter-spacing: .02em; }
.hero .orn { margin: 10px auto 22px; }
.hero__lead { font: italic 500 1.35rem/1.45 var(--serif); color: var(--muted); max-width: 26ch; margin: 0 auto 32px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* Secciones */
.section { padding: 88px 0; }
.section--soft { background: var(--ivory-2); }
.section--dark { background: var(--black); color: var(--ivory); }
.section--dark .eyebrow { color: var(--champagne); }
.section__head { text-align: center; margin-bottom: 48px; }
.section__sub { color: var(--muted); max-width: 52ch; margin: 0 auto; }

/* Servicios */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.service {
  text-align: center; padding: 34px 12px; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__ico { width: 44px; height: 44px; color: var(--champagne-ink); margin: 0 auto 16px; }
.service p { color: var(--muted); margin: 0 auto; max-width: 30ch; }
.note { text-align: center; color: var(--muted); margin-top: 40px; font: italic 500 1.25rem/1.5 var(--serif); }
.note a { color: var(--black); text-underline-offset: 4px; text-decoration-color: var(--champagne); text-decoration-thickness: 1px; white-space: nowrap; }
.note a:hover { color: var(--champagne-ink); }

/* Nosotros */
.about { display: grid; gap: 44px; align-items: center; }
.about__art { max-width: 200px; width: 100%; margin: 0 auto; }
.about__text { text-align: center; }
.about__text > p:not(.eyebrow) { color: #E6E0D6; max-width: 54ch; margin-left: auto; margin-right: auto; }

/* Horario */
.hours {
  position: relative; text-align: center; padding: 44px 24px;
  border: 1px solid var(--champagne); outline: 1px solid var(--champagne); outline-offset: -8px;
}
.hours__ico { width: 40px; height: 40px; color: var(--champagne-ink); margin: 0 auto 14px; }
.hours__title { font: 500 1.7rem/1.2 var(--serif); margin-bottom: 8px; }
.hours__text { color: var(--muted); margin-bottom: 24px; }

/* Reservas */
.booking {
  text-align: center; padding: 44px 24px; background: var(--ivory);
  border: 1px dashed var(--champagne-ink);
}
.booking__ico { width: 46px; height: 46px; color: var(--champagne-ink); margin: 0 auto 14px; }
.booking__title { font: 500 1.7rem/1.2 var(--serif); margin-bottom: 8px; }
.booking__text { color: var(--muted); max-width: 44ch; margin: 0 auto 26px; }
.booking .btn { width: 100%; padding-inline: 14px; letter-spacing: .08em; white-space: nowrap; }

/* Mapa */
.map { border: 1px solid var(--champagne); padding: 8px; background: var(--ivory); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.6) sepia(.15); }

/* Contacto */
.contact { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.contact__item {
  display: flex; align-items: center; gap: 18px; padding: 22px; color: var(--black); text-decoration: none;
  background: var(--ivory); border: 1px solid var(--line); transition: border-color .3s;
}
.contact__item:hover { border-color: var(--champagne-ink); }
.contact__item .ico { width: 28px; height: 28px; color: var(--champagne-ink); }
.contact__item strong {
  display: block; font: 500 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--champagne-ink); margin-bottom: 2px;
}
.contact__item > span { font: 500 1.3rem/1.3 var(--serif); }

/* Pie */
.footer { padding: 52px 0 44px; background: var(--black); color: #D9D3C9; text-align: center; font-size: .9rem; }
.footer__inner p { margin: 0 0 6px; }
.footer__logo { font: 500 1.9rem/1 var(--serif); color: var(--ivory); letter-spacing: .04em; }
.footer .orn { margin: 12px auto 18px; }
.footer__demo {
  display: inline-block; margin-top: 14px !important; padding: 5px 14px;
  border: 1px solid var(--champagne); color: var(--champagne); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}

/* Barra fija móvil */
.mobile-cta {
  position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250,247,242,.97); border-top: 1px solid var(--line);
}
.mobile-cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font: 500 .85rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--black); text-decoration: none; border: 1px solid var(--black);
}
.mobile-cta__btn--dark { background: var(--black); color: var(--ivory); }

/* Animaciones al aparecer */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 600px) {
  .hero__actions { flex-direction: row; justify-content: center; }
  .frame { padding: 80px 48px 72px; }
  .frame__corner { width: 60px; height: 60px; }
  .services { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .service:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .booking .btn { width: auto; }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .contact__item { flex-direction: column; text-align: center; padding: 32px 22px; }
  .map { aspect-ratio: 16 / 9; }
}

/* Escritorio */
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .menu-btn { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 30px; padding: 0;
    background: none; border: 0; transform: none; opacity: 1; visibility: visible;
  }
  .nav a:not(.btn) { border: 0; padding: 4px 0; font: 500 .8rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
  .nav .btn { margin: 0 0 0 6px; }
  .hero { padding: calc(var(--header-h) + 56px) 0 100px; }
  .frame { max-width: 720px; padding: 96px 72px 88px; }
  .section { padding: 128px 0; }
  .services { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .service { border-top: 0; border-bottom: 0 !important; border-left: 1px solid var(--line); padding: 20px 26px; }
  .service:first-child { border-left: 0; }
  .about { grid-template-columns: 1fr 1.5fr; gap: 88px; }
  .about__art { max-width: 280px; }
  .about__text, .about__text > p:not(.eyebrow) { text-align: left; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
