:root {
  --ink: #191713;
  --ink-soft: #39342d;
  --paper: #f5f0e8;
  --paper-2: #ebe2d7;
  --white: #fffdf9;
  --wood: #8a5a37;
  --wood-dark: #533520;
  --wood-light: #c79a6b;
  --charcoal: #171411;
  --line: rgba(86, 56, 33, .24);
  --shadow: 0 24px 55px rgba(31, 21, 14, .13);
  --radius: 26px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding: 110px 0; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--wood-light), var(--wood));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(245, 240, 232, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(67, 45, 28, .1);
}
.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 53, 32, .35);
  border-radius: 14px;
  color: var(--paper);
  background: var(--wood-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .04em;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.brand-copy small { margin-top: 4px; color: #776a5e; font-size: 11px; letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.main-nav > a:not(.nav-cta) { position: relative; }
.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--wood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.main-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 18px; color: var(--white); background: var(--charcoal); border-radius: 999px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--charcoal); padding: 12px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--paper); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 800px;
  padding-top: 150px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(199, 154, 107, .24), transparent 31%),
    linear-gradient(135deg, #f8f4ed 0%, #eee4d8 70%, #e8d7c4 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(83, 53, 32, .13);
  border-radius: 50%;
  right: -170px;
  top: 110px;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .35;
  pointer-events: none;
  background-image: repeating-radial-gradient(ellipse at 120% 50%, transparent 0 12px, rgba(93, 63, 40, .04) 13px 14px, transparent 15px 24px);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; gap: 76px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--wood); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.04; }
h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 6.4vw, 86px); letter-spacing: -.045em; }
.hero-lead { max-width: 670px; margin: 28px 0 0; color: #5d544c; font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { min-height: 50px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--charcoal); box-shadow: 0 12px 28px rgba(23, 20, 17, .16); }
.btn-ghost { border: 1px solid rgba(60, 42, 28, .26); background: rgba(255,255,255,.36); }
.hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: 3px; }
.hero-meta span { color: #8a7b6d; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-meta strong { font-size: 14px; }

.hero-showcase { position: relative; min-height: 570px; }
.hero-photo { margin: 0; position: absolute; overflow: hidden; border: 1px solid rgba(82, 54, 34, .24); background: #ddd; box-shadow: var(--shadow); }
.hero-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 38px rgba(40, 27, 18, .18); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 0 88px 48px 0; border-radius: 34px; }
.hero-photo-side { width: 235px; height: 300px; right: 0; bottom: 0; border-radius: 28px; }
.hero-badge { position: absolute; top: 30px; right: 28px; display: grid; padding: 15px 18px; color: var(--white); background: rgba(23,20,17,.9); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 12px 30px rgba(23,20,17,.18); }
.hero-badge span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.hero-badge strong { margin-top: 2px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; }

.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.03em; }
.section-heading > p:last-child { max-width: 650px; margin: 20px 0 0; color: #6d6258; font-size: 16px; }
.section-heading.light h2, .section-heading.light p { color: var(--paper); }
.section-heading.light .eyebrow { color: var(--wood-light); }
.section-heading.light > p:last-child { color: rgba(245,240,232,.72); }

.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { position: relative; min-height: 250px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid rgba(86,56,33,.15); border-radius: var(--radius); background: linear-gradient(145deg, #fffdf9, #f3ece3); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card::before { content: ""; position: absolute; width: 170px; height: 170px; right: -72px; top: -78px; border: 1px solid rgba(138,90,55,.15); border-radius: 50%; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(138,90,55,.36); box-shadow: 0 20px 40px rgba(40,27,18,.09); }
.service-number { position: absolute; top: 26px; left: 30px; color: var(--wood); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.service-card h3 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.02em; }
.service-card p { margin: 0; color: #71665c; }

.work-intro { position: relative; overflow: hidden; color: var(--paper); background: var(--charcoal); }
.work-intro::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(102deg, transparent 0 24px, rgba(255,255,255,.12) 25px, transparent 26px 48px); }
.work-intro-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .9fr; gap: 70px; align-items: center; }
.work-lines { display: grid; gap: 17px; }
.work-lines span { display: block; height: 1px; background: linear-gradient(90deg, transparent, rgba(199,154,107,.7), transparent); }
.work-lines span:nth-child(2) { transform: translateX(-6%); }
.work-lines span:nth-child(3) { transform: translateX(4%); }
.work-lines span:nth-child(4) { transform: translateX(-10%); }

.gallery-section { background: #efe7dc; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 18px; }
.gallery-item {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(83,53,32,.34);
  border-radius: 22px;
  background: #d8c9b9;
  box-shadow: 0 18px 32px rgba(55,37,24,.12), 0 0 28px rgba(199,154,107,.14);
  cursor: zoom-in;
  text-align: left;
}
.gallery-item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 32px rgba(40,25,15,.16); pointer-events: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-caption { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 8px 11px; color: #fff; background: rgba(23,20,17,.76); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.detail-strip { color: var(--paper); background: linear-gradient(120deg, #4a2f1d 0%, #241b15 58%, #171411 100%); }
.detail-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.detail-copy h2 { margin: 0; font-size: clamp(38px, 4vw, 60px); }
.detail-copy .eyebrow { color: var(--wood-light); }
.detail-list { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-list span { padding: 11px 15px; border: 1px solid rgba(245,240,232,.18); border-radius: 999px; background: rgba(255,255,255,.05); font-size: 13px; }

.info-section { background: var(--white); }
.info-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.info-panel, .schedule-card { min-height: 330px; padding: 42px; border-radius: 30px; }
.info-panel { display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, #f5efe6, #e7d7c5); border: 1px solid rgba(86,56,33,.16); }
.info-panel h2 { margin: 0; font-size: clamp(43px, 5vw, 68px); letter-spacing: -.035em; }
.info-location { margin: 18px 0 0; color: #695b50; font-size: 18px; }
.schedule-card { display: flex; flex-direction: column; justify-content: center; color: var(--paper); background: var(--charcoal); }
.schedule-label { color: var(--wood-light); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.schedule-card strong { margin-top: 14px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; }
.schedule-card p { margin: 6px 0 0; color: rgba(245,240,232,.74); font-size: 20px; }

.site-footer { padding: 38px 0; color: #d8cec4; background: #0e0c0a; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-footer strong { color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.site-footer p { margin: 4px 0 0; color: #8e8378; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; font-size: 13px; }
.site-footer a:hover { color: var(--wood-light); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 30px;
  background: rgba(8,7,6,.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-frame { margin: 0 auto; max-width: min(100%, 1100px); max-height: calc(100vh - 80px); display: grid; justify-items: center; gap: 12px; }
.lightbox-frame img { max-width: 100%; max-height: calc(100vh - 125px); object-fit: contain; border: 1px solid rgba(199,154,107,.55); border-radius: 18px; box-shadow: 0 0 42px rgba(199,154,107,.13); }
.lightbox-frame figcaption { color: #c8bcb1; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lightbox-close, .lightbox-nav { border: 1px solid rgba(255,255,255,.14); color: var(--paper); background: rgba(255,255,255,.06); cursor: pointer; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; font-size: 27px; }
.lightbox-nav { width: 52px; height: 52px; border-radius: 50%; font-size: 34px; line-height: 1; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,.13); }

/* La página nunca depende de JavaScript para ser visible.
   El movimiento es progresivo: si JS falla, todo el contenido permanece visible. */
.reveal { opacity: 1; transform: none; transition: transform .7s ease; }
.reveal.motion-ready { transform: translateY(18px); }
.reveal.motion-ready.visible { transform: translateY(0); }

@media (max-width: 980px) {
  .section-pad { padding: 88px 0; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(86,56,33,.15);
    border-radius: 22px;
    background: rgba(250,246,240,.97);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(31,21,14,.14);
    transform: translateY(-12px) scale(.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .main-nav a { padding: 12px 10px; }
  .main-nav .nav-cta { text-align: center; margin-top: 4px; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-showcase { min-height: 620px; max-width: 720px; width: 100%; margin-inline: auto; }
  .hero-photo-main { inset: 0 100px 60px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-intro-grid, .detail-grid { grid-template-columns: 1fr; gap: 38px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; }
  .info-grid { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 56px minmax(0,1fr) 56px; padding: 18px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 72px 0; }
  .site-header { padding: 10px 0; }
  .nav-shell { width: calc(100% - 24px); }
  .brand-mark { width: 42px; border-radius: 12px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 10px; }
  .hero { padding-top: 118px; }
  h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-lead { margin-top: 22px; }
  .hero-meta { grid-template-columns: 1fr; gap: 13px; }
  .hero-showcase { min-height: 490px; }
  .hero-photo-main { inset: 0 48px 55px 0; border-radius: 24px; }
  .hero-photo-side { width: 165px; height: 220px; border-radius: 20px; }
  .hero-badge { top: 18px; right: 8px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(38px, 11vw, 52px); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 210px; padding: 26px; }
  .service-number { left: 26px; }
  .gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; gap: 14px; }
  .gallery-item, .gallery-wide, .gallery-tall { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; border-radius: 18px; }
  .gallery-item:first-child { aspect-ratio: 16 / 10; }
  .info-panel, .schedule-card { min-height: 285px; padding: 30px; border-radius: 24px; }
  .schedule-card strong { font-size: 30px; }
  .footer-grid { display: grid; }
  .site-footer nav { justify-content: flex-start; gap: 14px; }
  .lightbox { grid-template-columns: 1fr; padding: 16px; }
  .lightbox-nav { position: absolute; bottom: 22px; z-index: 2; width: 46px; height: 46px; }
  .lightbox-nav.prev { left: 20px; }
  .lightbox-nav.next { right: 20px; }
  .lightbox-frame img { max-height: calc(100vh - 150px); }
}

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