:root {
  --cream: #fbf9f3;
  --bg: #f4f2ea;
  --sand: #e4eee7;
  --latte: #b7d3c5;
  --caramel: #2f8f74;
  --cocoa: #0f4a3d;
  --ink: #1d2b27;
  --muted: #66726e;
  --mist: #eceeec;
  --fog: #c4cbc8;
  --line: #dde1de;
  --teal: #1fb0b0;
  --teal-dark: #158a8a;
  --gold: #e6bd78;
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.15; margin: 0 0 .5em; color: var(--cocoa); }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.55rem; font-weight: 400; }
em { color: var(--caramel); font-style: italic; }
.muted { color: var(--muted); font-size: .95rem; }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--caramel);
  margin: 0 0 1rem;
}

/* Botones */
.btn {
  display: inline-block;
  padding: .9em 2em;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--cream);
  text-decoration: none;
  font-weight: 400;
  font-size: .9rem;
  letter-spacing: .04em;
  border: 1.5px solid var(--cocoa);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cocoa); }
.btn-light { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--teal-dark); }
.btn-small { padding: .55em 1.4em; font-size: .8rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem clamp(1rem, 5vw, 4rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: .85rem; font-weight: 400; letter-spacing: .04em; }
.nav a:not(.btn):hover { color: var(--teal-dark); }
.nav .btn { color: var(--cream); }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--cocoa); margin: 6px 0; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}
.lead { font-size: 1.05rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-media { position: relative; padding: 0 0 12% 6%; }
.hero-arch {
  position: absolute; top: -4%; right: -3%; width: 70%; height: 92%;
  background: var(--sand); border-radius: 999px 999px 24px 24px; z-index: 0;
}
.photo-main {
  position: relative; z-index: 1; width: 90%; margin-left: auto;
  border-radius: 999px 999px var(--radius) var(--radius);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 35%;
  box-shadow: 0 24px 50px rgba(15, 74, 61, .18);
}
.photo-small {
  position: absolute; z-index: 2; left: 0; bottom: 0; width: 38%;
  aspect-ratio: 1; object-fit: cover; object-position: 55% 30%;
  border-radius: var(--radius); border: 6px solid var(--bg);
  box-shadow: 0 14px 34px rgba(15, 74, 61, .2);
}

/* Secciones */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 5vw, 4rem); max-width: 1280px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--cream); border-block: 1px solid var(--line); }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin: 0 0 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.service {
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(15, 74, 61, .12); }
.service-art { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.service-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.service:hover .service-art img { transform: scale(1.04); }
.service-body { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); margin: 0 0 1.4rem; font-size: .95rem; }
.service-body .btn { align-self: flex-start; margin-top: auto; }
.service-featured { background: var(--cocoa); border-color: var(--cocoa); }
.service-featured h3 { color: var(--cream); }
.service-featured p { color: var(--latte); }
.service-featured .btn { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }
.service-featured .btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.service-featured .features li { color: var(--cream); }
.service-featured .features svg { color: var(--gold); }

.features {
  list-style: none; margin: 0 0 1.8rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1rem;
}
.features li { display: flex; align-items: center; gap: .65rem; font-size: .85rem; line-height: 1.35; color: var(--ink); }
.features svg {
  flex: 0 0 22px; width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  color: var(--caramel);
}


/* Experiencia */
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.steps li { text-align: center; padding: 0 .5rem; }
.step-num { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 300; color: var(--fog); line-height: 1; margin-bottom: .6rem; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }

.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }

.cta {
  max-width: none; text-align: center; color: var(--cream);
  background: var(--cocoa);
}
.cta h2 { color: var(--cream); }
.cta .eyebrow { color: var(--gold); }
.cta p:not(.eyebrow) { max-width: 36em; margin: 0 auto 2rem; color: var(--latte); }

.site-footer { text-align: center; padding: 3rem 1rem 2rem; background: #fff; border-top: 1px solid var(--line); }
.site-footer img { margin: 0 auto 1rem; }
.social { display: flex; justify-content: center; gap: 1.8rem; margin-bottom: 1rem; }
.social a { text-decoration: none; font-size: .85rem; letter-spacing: .04em; }
.social a:hover { color: var(--teal-dark); }
.site-footer p { color: var(--muted); font-size: .78rem; margin: 0; }

/* Tablet / móvil */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1rem; padding: 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .hero, .about { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Etiqueta editorial (reemplaza al badge) */
.kicker {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 1.05rem; color: var(--gold); margin: 0 0 .6rem !important;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

/* Navidad (temporada) */
.btn-gold { background: var(--gold); border-color: var(--gold); color: #3a1c1c; font-weight: 500; }
.btn-gold:hover { background: #f0cc8c; border-color: #f0cc8c; color: #3a1c1c; }
.nav .nav-xmas { color: #8c2f39; font-weight: 500; }
.xmas {
  position: relative; overflow: hidden; color: var(--cream);
  background:
    linear-gradient(135deg, #7a2e33, #5a1f25);
}
.xmas-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  max-width: 1280px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
}
.xmas .eyebrow { color: var(--gold); }
.xmas h2 { color: var(--cream); font-size: clamp(2rem, 4.2vw, 3.3rem); }
.xmas-lead { color: #ecd6c4; max-width: 34em; }
.xmas-features { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1rem; }
.xmas-features li { display: flex; align-items: center; gap: .65rem; font-size: .88rem; line-height: 1.35; }
.xmas-features svg { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xmas-note { margin: 1.2rem 0 0; font-size: .85rem; color: #e0c3ad; font-style: italic; }
.xmas-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 30%;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 6px solid var(--gold); box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
@media (max-width: 800px) {
  .xmas-inner { grid-template-columns: 1fr; }
  .xmas-media { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 420px) { .xmas-features { grid-template-columns: 1fr; } }

/* ===== Animaciones ===== */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.site-header { transition: box-shadow .3s, padding .3s; }
.site-header .brand img { transition: height .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 74, 61, .08); padding-top: .4rem; padding-bottom: .4rem; }
.site-header.scrolled .brand img { height: 40px; }

.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.btn:hover::after { left: 130%; }

.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.xmas-inner { position: relative; z-index: 1; }

.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes archIn { from { clip-path: inset(100% 0 0 0 round 999px 999px 22px 22px); } to { clip-path: inset(0 0 0 0 round 999px 999px 22px 22px); } }
@keyframes underline { to { background-size: 100% 2px; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 189, 120, .45); } 50% { box-shadow: 0 0 0 12px rgba(230, 189, 120, 0); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(3) { animation-delay: .24s; }
  .hero-text > :nth-child(4) { animation-delay: .36s; }
  .hero h1 em {
    background: linear-gradient(var(--caramel), var(--caramel)) no-repeat 0 94% / 0 2px;
    animation: underline 1.1s .9s ease forwards; padding-bottom: .05em;
  }
  .photo-main { animation: archIn 1.4s .15s cubic-bezier(.2,.7,.2,1) both; }
  .hero-arch { animation: rise 1.4s both; }
  .photo-small { animation: rise 1s .9s both, float 7s 2s ease-in-out infinite; }
  .xmas-media img { animation: archIn 1.4s .2s cubic-bezier(.2,.7,.2,1) both; }
  .btn-gold { animation: glow 3.2s 1.5s ease-in-out infinite; }
  .photo-main, .photo-small, .hero-arch, .xmas-media img { will-change: transform; }
}
