:root {
  --bg: #faf5ee;
  --ink: #22170f;
  --muted: #776656;
  --accent: #c0392b;
  --gold: #d9a441;
  --card: #ffffff;
  --dark: #1d140d;
  --wa: #25d366;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.65; font-weight: 400; overflow-x: hidden; }
body.loading { overflow: hidden; }
h1, h2, h3, .logo { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.1; margin-bottom: 12px; }
h2 em, h1 em { color: var(--accent); font-style: italic; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--dark); display: grid; place-items: center;
  transition: transform .9s var(--ease) .2s; }
.loader span { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: #fff; letter-spacing: .3em;
  animation: pulse 1.2s ease-in-out infinite; }
.loader.done { transform: translateY(-100%); }
@keyframes pulse { 50% { opacity: .35; } }

.demo-bar { background: var(--gold); color: var(--dark); font-size: .78rem; text-align: center; padding: 6px 16px; font-weight: 500; }

/* Nav */
.nav { position: fixed; top: 30px; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; color: #fff; transition: all .4s var(--ease); }
.nav.scrolled { top: 0; padding: 14px 40px; background: rgba(250,246,242,.92); backdrop-filter: blur(12px); color: var(--ink);
  box-shadow: 0 6px 30px rgba(0,0,0,.06); }
.logo { font-size: 1.6rem; display: flex; flex-direction: column; line-height: 1; }
.logo span { font-family: "Inter", sans-serif; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 4px; font-weight: 500; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: .92rem; }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 22px; position: relative; cursor: pointer; }
.nav-toggle i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: .3s; }
.nav-toggle i:first-child { top: 5px; } .nav-toggle i:last-child { bottom: 5px; }
.nav-toggle.open i:first-child { top: 10px; transform: rotate(45deg); }
.nav-toggle.open i:last-child { bottom: 10px; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-block; position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: 14px 28px;
  border-radius: 999px; font-weight: 500; font-size: .95rem; letter-spacing: .02em; border: 1px solid var(--accent);
  transition: transform .3s var(--ease), box-shadow .3s; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--dark); transform: translateY(101%);
  transition: transform .4s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168,50,79,.3); border-color: var(--dark); }
.btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { color: #fff; }
.btn-small { padding: 10px 20px; font-size: .85rem; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 40px 100px; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: -40px; background: var(--img) center/cover no-repeat; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translate(-2%, -1%); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,12,14,.88) 0%, rgba(20,12,14,.55) 50%, rgba(20,12,14,.15) 100%); }
.hero-content { position: relative; max-width: 680px; margin-left: max(0px, calc((100vw - 1200px) / 2)); }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); line-height: .98; margin-bottom: 24px; font-weight: 500; }
.hero h1 em { color: #f2c3cf; }
.split-text .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-text .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.split-text.in .w > span { transform: none; }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.82); margin-bottom: 34px; max-width: 520px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 44px; }
.rating { display: flex; align-items: center; gap: 10px; padding-right: 28px; border-right: 1px solid rgba(255,255,255,.25); }
.rating strong { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; line-height: 1; }
.rating .stars { color: var(--gold); letter-spacing: 2px; }
.rating small { color: rgba(255,255,255,.7); font-size: .8rem; }
.status { font-size: .9rem; font-weight: 500; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #999; vertical-align: middle; }
.status.open::before { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translate(-50%, 14px); opacity: 0; } }

/* Marquee */
.marquee { background: var(--dark); color: var(--gold); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-style: italic; padding: 0 34px; white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .9rem; margin-left: 68px; vertical-align: middle; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 120px 40px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-sub { color: var(--muted); }
.note { color: var(--muted); font-size: .88rem; margin: 10px 0 26px; }
.center { text-align: center; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 40px rgba(31,23,25,.06);
  transition: transform .5s var(--ease), box-shadow .5s; }
.service:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(31,23,25,.12); }
.service-img { aspect-ratio: 4/5; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 24px 24px 28px; }
.num { font-size: .75rem; color: var(--gold); letter-spacing: .2em; font-weight: 600; }
.service h3 { font-size: 1.6rem; margin: 4px 0 6px; }
.service p { color: var(--muted); font-size: .93rem; }

/* Experience */
.experience { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 640px; background: var(--dark); color: #fff; }
.exp-img { background: var(--img) center/cover no-repeat; background-attachment: fixed; }
.exp-content { padding: 100px 70px; display: flex; flex-direction: column; justify-content: center; }
.steps { list-style: none; margin: 30px 0 40px; }
.steps li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps span { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; color: var(--gold); line-height: 1; min-width: 34px; }
.steps h3 { font-size: 1.5rem; }
.steps p { color: rgba(255,255,255,.7); font-size: .95rem; }
.exp-content .btn { align-self: flex-start; }

/* Gallery */
.gallery-section { max-width: 1200px; margin: 0 auto; padding: 120px 40px 40px; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 260px 260px; gap: 20px; }
.gallery figure { border-radius: 22px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.g1 { grid-row: span 2; }
.gallery-section .note { margin-top: 18px; }

/* Info */
.info-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.addr { font-size: 1.15rem; margin: 10px 0 28px; }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { width: 100%; height: 400px; border: 0; border-radius: 22px; box-shadow: 0 20px 50px rgba(31,23,25,.12); filter: grayscale(.25); }
.section-dark { max-width: none; background: var(--dark); color: #fff; }
.section-dark > .info-grid { max-width: 1200px; margin: 0 auto; }
.section-dark .note { color: rgba(255,255,255,.6); }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours td { padding: 16px 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours td:last-child { text-align: right; color: rgba(255,255,255,.8); }
.hours tr.today td { color: var(--gold); font-weight: 600; }
.hours tr.today td:first-child::after { content: " · hoy"; font-weight: 400; font-size: .8rem; }

/* Footer */
.footer { text-align: center; padding: 70px 16px 100px; background: #140e10; color: rgba(255,255,255,.75); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer .logo { color: #fff; margin-bottom: 10px; align-items: center; }
.footer .small { opacity: .5; font-size: .8rem; }

.wa-float { position: fixed; right: 24px; bottom: 24px; width: 62px; height: 62px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); z-index: 40;
  transform: scale(0); transition: transform .5s var(--ease); }
.wa-float.show { transform: scale(1); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .experience { grid-template-columns: 1fr; }
  .exp-img { min-height: 360px; background-attachment: scroll; }
  .exp-content { padding: 70px 24px; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .demo-bar { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav, .nav.scrolled { padding: 14px 16px; }
  .nav-toggle { display: block; color: inherit; }
  .nav-links { position: fixed; inset: 0; background: var(--dark); color: #fff; flex-direction: column; justify-content: center;
    gap: 26px; font-size: 1.3rem; opacity: 0; pointer-events: none; transition: opacity .4s; z-index: -1; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .hero { padding: 130px 16px 90px; }
  .section, .gallery-section { padding: 80px 16px; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 240px); }
  .g1 { grid-row: auto; }
  .rating { border-right: 0; padding-right: 0; }
  .marquee span { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .split-text .w > span { opacity: 1; transform: none; }
}
