/* =========================================================================
   Eira Viva Eventos · Hoja de estilos
   ========================================================================= */

/* ---------- Fuentes (alojadas en el propio servidor) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
  --cream: #f8f3ec;
  --paper: #fdfaf5;
  --linen: #efe6d8;
  --sand: #d9c7a7;
  --olive: #7a7d4c;
  --olive-dark: #55583a;
  --olive-deep: #3f412b;
  --ink: #3a3c2c;
  --muted: #6f705f;
  --blush: #ecdccd;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(63, 65, 43, .45);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive-dark); text-decoration: none; transition: color .25s; }
a:hover { color: var(--olive); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--olive-deep);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
em, .serif-italic { font-family: var(--serif); font-style: italic; }
strong { font-weight: 500; }
::selection { background: var(--olive); color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--olive); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Elementos comunes ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
  opacity: .7;
}
.center .eyebrow::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 14px;
  opacity: .7;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-tight { padding: clamp(56px, 7vw, 90px) 0; }
.section-paper { background: var(--paper); }
.section-linen { background: var(--linen); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section-head p { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--olive-dark); }
.btn-outline:hover { background: var(--olive); color: var(--white); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--olive-deep); }
.btn-small { padding: 11px 20px; font-size: .74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

.link-arrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--olive-dark);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 4px;
}
.link-arrow::after { content: " →"; transition: margin .3s; }
.link-arrow:hover::after { margin-left: 4px; }

.ornament { display: block; width: 56px; height: 56px; margin: 0 auto 22px; opacity: .9; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-icon { width: 44px; height: 44px; filter: brightness(0) invert(1); transition: filter .4s; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: .01em; }
.brand-sub { font-size: .62rem; letter-spacing: .5em; text-transform: uppercase; margin-top: 4px; padding-left: 2px; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav ul { display: flex; gap: 30px; }
.site-nav ul a {
  position: relative;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 0;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { background: transparent; border-color: rgba(255,255,255,.7); }
.nav-cta:hover { background: var(--white); color: var(--olive-deep); border-color: var(--white); }

/* Cabecera sólida (al hacer scroll o en páginas sin portada oscura) */
.site-header.is-scrolled, .header-solid .site-header {
  background: rgba(248, 243, 236, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(122, 125, 76, .15);
}
.site-header.is-scrolled { height: 70px; }
.site-header.is-scrolled .brand, .header-solid .site-header .brand { color: var(--olive-deep); }
.site-header.is-scrolled .brand-icon, .header-solid .site-header .brand-icon { filter: none; }
.site-header.is-scrolled .site-nav ul a, .header-solid .site-header .site-nav ul a { color: var(--olive-deep); }
.site-header.is-scrolled .nav-cta, .header-solid .site-header .nav-cta { background: var(--olive); border-color: var(--olive); color: var(--white); }
.site-header.is-scrolled .nav-cta:hover, .header-solid .site-header .nav-cta:hover { background: var(--olive-dark); }
.site-header.is-scrolled .nav-toggle span, .header-solid .site-header .nav-toggle span { background: var(--olive-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--white); margin: 6px 0; transition: transform .35s var(--ease), opacity .3s; }

/* ---------- Portada (hero) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--olive-deep);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 9s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(40, 42, 28, .6) 0%, rgba(40, 42, 28, .42) 45%, rgba(40, 42, 28, .65) 100%);
}
.hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 20px) 24px 80px; max-width: 900px; }
.hero-icon { width: 96px; height: 96px; margin: 0 auto 18px; filter: brightness(0) invert(1); opacity: .95; }
.hero h1 { color: var(--white); font-size: clamp(3.4rem, 10vw, 7rem); font-weight: 400; line-height: 1; margin: 0; letter-spacing: .01em; }
.hero-sub { font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .7em; text-transform: uppercase; margin: 14px 0 28px; padding-left: .7em; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0 auto 40px; max-width: 640px; opacity: .95; }
.hero .btn-row { justify-content: center; }
.hero-scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 14px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--white); border-radius: 2px;
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Portada de páginas interiores */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--olive-deep);
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,42,28,.45) 0%, rgba(40,42,28,.2) 45%, rgba(40,42,28,.7) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vw, 80px); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .eyebrow { color: rgba(255,255,255,.9); }
.page-hero p { max-width: 620px; margin: 14px 0 0; font-size: 1.1rem; opacity: .92; }

/* Cabecera simple (páginas legales) */
.page-plain { padding: calc(var(--header-h) + 70px) 0 40px; background: var(--paper); border-bottom: 1px solid var(--linen); }
.page-plain h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 0; }

/* ---------- Bloque de introducción ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split-reverse .split-media { order: 2; }
.collage { position: relative; padding: 0 12% 18% 0; }
.collage img { box-shadow: var(--shadow); border-radius: var(--radius); }
.collage .collage-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.collage .collage-small {
  position: absolute; right: 0; bottom: 0;
  width: 52%; aspect-ratio: 1; object-fit: cover;
  border: 10px solid var(--cream);
}
.section-paper .collage .collage-small { border-color: var(--paper); }
.collage::before {
  content: "";
  position: absolute;
  top: -22px; left: -22px;
  width: 60%; height: 60%;
  border: 1px solid var(--sand);
  z-index: -1;
}
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--olive); margin-top: 6px; }

/* ---------- Servicios (tarjetas) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4.3;
  color: var(--white);
  background: var(--olive-deep);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,42,28,0) 22%, rgba(40,42,28,.55) 52%, rgba(35,37,24,.92) 100%); transition: background .5s; }
.card-body { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.card:hover img { transform: scale(1.07); }
.card:hover { color: var(--white); }
.card-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px 24px; }
.card-body h3 { color: var(--white); margin: 0 0 6px; font-size: 1.75rem; }
.card-body p { margin: 0; font-size: .95rem; opacity: .9; line-height: 1.55; }
.card-body .card-more { display: inline-block; margin-top: 14px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; }

/* ---------- Cita ---------- */
.quote-band {
  position: relative;
  background: var(--olive-dark);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -140px; top: 50%;
  transform: translateY(-50%);
  background: url("../img/logo/logo-icono.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .06;
}
.quote-band blockquote { position: relative; margin: 0 auto; max-width: 860px; }
.quote-band blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.35; margin-bottom: 26px; color: var(--white); }
.quote-band cite { font-style: normal; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.quote-mark { font-family: var(--serif); font-size: 5rem; line-height: .5; display: block; opacity: .5; margin-bottom: 18px; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step-num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--sand); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.55rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--olive); }

/* ---------- Detalles / características ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--linen); border: 1px solid var(--linen); }
.feature { background: var(--paper); padding: 40px 34px; transition: background .4s; }
.feature:hover { background: var(--white); }
.feature svg { width: 40px; height: 40px; stroke: var(--olive); fill: none; stroke-width: 1.2; margin-bottom: 18px; }
.feature h3 { font-size: 1.45rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Mosaico galería portada ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}
.mosaic a { position: relative; overflow: hidden; border-radius: var(--radius); display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }

/* ---------- Instagram ---------- */
.insta-band { text-align: center; }
.insta-handle { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--olive-deep); display: inline-flex; align-items: center; gap: 14px; }
.insta-handle svg { width: 34px; height: 34px; fill: var(--olive); }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { position: relative; color: var(--white); text-align: center; overflow: hidden; background: var(--olive-deep); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 560px; margin: 0 auto 34px; font-size: 1.1rem; opacity: .92; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn { background: var(--cream); color: var(--olive-deep); border-color: var(--cream); }
.cta-band .btn:hover { background: var(--white); border-color: var(--white); }
.cta-band .btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.cta-band .btn-light:hover { background: var(--white); color: var(--olive-deep); }

/* ---------- Sobre nosotros ---------- */
.story { font-size: 1.12rem; }
.story p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: .85;
  padding: 6px 12px 0 0;
  color: var(--olive);
}
.story-highlight { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.4; color: var(--olive-dark); border-left: 2px solid var(--sand); padding-left: 24px; margin: 34px 0; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value { text-align: center; padding: 10px; }
.value svg { width: 46px; height: 46px; stroke: var(--olive); fill: none; stroke-width: 1.1; margin: 0 auto 18px; display: block; }
.value h3 { font-size: 1.5rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .97rem; margin: 0; }
.figure-frame { position: relative; }
.figure-frame img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.figure-frame::after { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--sand); z-index: -1; }

/* ---------- Servicios (detalle) ---------- */
.service { padding: clamp(60px, 8vw, 110px) 0; }
.service + .service { border-top: 1px solid var(--linen); }
.service-media { position: relative; }
.service-media .main { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-media .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.service-media .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.service-num { font-family: var(--serif); font-size: 1rem; letter-spacing: .3em; color: var(--olive); display: block; margin-bottom: 8px; }
.checklist { margin: 26px 0 32px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 16px; height: 8px;
  border-left: 1.5px solid var(--olive);
  border-bottom: 1.5px solid var(--olive);
  transform: rotate(-45deg) translateY(-50%);
}
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.plan { background: var(--paper); border: 1px solid var(--linen); padding: 44px 34px; border-radius: var(--radius); text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.8rem; }
.plan .plan-tag { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--olive); display: block; margin-bottom: 12px; }
.plan p { color: var(--muted); font-size: .98rem; }
.plan .checklist { text-align: left; font-size: .96rem; margin-bottom: 0; }
.plan-featured { background: var(--olive-dark); color: var(--cream); border-color: var(--olive-dark); }
.plan-featured h3, .plan-featured .plan-tag { color: var(--white); }
.plan-featured p { color: rgba(255,255,255,.85); }
.plan-featured .checklist li::before { border-color: var(--sand); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 50px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--olive-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.8rem; color: var(--olive); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--olive-dark);
  border-radius: 999px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--olive); }
.filter-btn.is-active { background: var(--olive); border-color: var(--olive); color: var(--white); }
.filter-btn .count { opacity: .65; margin-left: 4px; }
.gallery { columns: 4 260px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin-bottom: 14px; display: block; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--linen); }
.gallery-item img { width: 100%; transition: transform .9s var(--ease), opacity .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.is-hidden { display: none; }

/* Visor (lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(30, 31, 22, .95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); border-radius: 2px; }
.lb-btn { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; opacity: .8; transition: opacity .25s; padding: 14px; }
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .8rem; letter-spacing: .25em; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.contact-list { margin: 30px 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; }
.contact-list .ci-icon { flex: 0 0 52px; height: 52px; border-radius: 50%; border: 1px solid var(--sand); display: flex; align-items: center; justify-content: center; }
.contact-list svg { width: 22px; height: 22px; fill: var(--olive); }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { font-family: var(--serif); font-size: 1.35rem; color: var(--olive-deep); word-break: break-word; }
.contact-photo { margin-top: 34px; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.form-card { background: var(--paper); padding: clamp(28px, 5vw, 54px); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--linen); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-dark); margin-bottom: 8px; }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a7d4c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(122, 125, 76, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b4543c; }
.field-error { color: #a1452f; font-size: .85rem; margin-top: 6px; display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--olive); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin: 18px 0 0; line-height: 1.6; }
.alert { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 28px; font-size: 1rem; }
.alert-ok { background: #eef0e2; border: 1px solid #c8cca4; color: var(--olive-deep); }
.alert-error { background: #f8e9e3; border: 1px solid #e3bfb2; color: #7d3523; }
.alert h3 { margin: 0 0 6px; font-size: 1.5rem; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.9rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.4rem; margin-top: 1.4em; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.1em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linen); vertical-align: top; }
.legal th { font-weight: 500; color: var(--olive-dark); background: var(--paper); }
.legal .todo { background: #fff3cd; padding: 0 4px; }

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: flex; align-items: center; text-align: center; padding-top: var(--header-h); }
.notfound .big { font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--sand); margin: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--olive-deep); color: rgba(255,255,255,.82); font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; gap: 50px; padding-top: 80px; padding-bottom: 60px; }
.footer-icon { width: 72px; height: 72px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.footer-name { font-family: var(--serif); font-size: 2.1rem; color: var(--white); margin: 0; line-height: 1; }
.footer-sub { font-size: .64rem; letter-spacing: .55em; text-transform: uppercase; margin: 6px 0 18px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.footer-title { font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.82); }
.footer-links a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 12px; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--sand); flex: 0 0 18px; }
.footer-text { margin-bottom: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 22px; }
.footer-bottom a { color: rgba(255,255,255,.75); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.45);
  transition: transform .3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide img { transition: none; transform: none; }
  .hero-scroll::after { animation: none; }
}

/* =========================================================================
   Adaptación a pantallas
   ========================================================================= */
@media (max-width: 1100px) {
  .site-nav ul { gap: 22px; }
  .site-nav { gap: 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 4 / 4.2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
    z-index: 110;
  }
  .site-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .site-nav ul a { color: var(--olive-deep) !important; font-family: var(--serif); font-size: 2rem; letter-spacing: .02em; text-transform: none; }
  .site-nav .nav-cta { background: var(--olive) !important; border-color: var(--olive) !important; color: var(--white) !important; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span { background: var(--olive-deep) !important; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
  .nav-open .site-header .brand { color: var(--olive-deep); position: relative; z-index: 120; }
  .nav-open .site-header .brand-icon { filter: none; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .collage { max-width: 560px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .brand-name { font-size: 1.5rem; }
  .brand-icon { width: 38px; height: 38px; }
  .cards, .steps, .features, .values, .footer-grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3.6; }
  .form-grid { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 150px; gap: 8px; }
  .gallery { columns: 2 140px; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .hero-icon { width: 76px; height: 76px; }
  .hero-sub { letter-spacing: .5em; }
  .btn { padding: 15px 26px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .figure-frame::after { inset: 14px -10px -14px 10px; }
  .collage::before { top: -12px; left: -12px; }
  .page-hero { min-height: 52vh; }
}
