/* ── Variables ── */
:root {
  --stone-dark:  #1C1917;
  --stone-mid:   #57534E;
  --stone-light: #A8A29E;
  --sand:        #D6CDBF;
  --sand-light:  #EDE8E0;
  --cream:       #FAF7F2;
  --white:       #FFFFFF;
  --gold:        #BFA015;
  --gold-light:  #D0B420;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w:  1200px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--font-sans); background: var(--cream); color: var(--stone-dark); line-height: 1.7; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ── Tipografía ── */
.display {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
}
h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.15; }
h3 { font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-light);
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: clamp(5rem, 10vw, 9rem) 0; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.75rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: var(--cream);
  padding: 1rem var(--gutter);
  box-shadow: 0 1px 0 rgba(28,25,23,0.09);
}
.nav__logo { display: flex; align-items: center; }

/* Imagen: solo visible cuando el nav ya está scrollado */
.nav__logo-img {
  height: 46px;
  width: auto;
  display: none;
}
.nav.scrolled .nav__logo-img { display: block; }

/* Texto: visible solo en el estado transparente (sobre el hero) */
.nav__logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.nav__logo-text small {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  font-family: var(--font-sans);
}
.nav.scrolled .nav__logo-text { display: none; }

.nav__links { display: flex; gap: 2.5rem; align-items: center; }
.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a { color: var(--stone-mid); }
.nav.scrolled .nav__links a:hover { color: var(--stone-dark); }

.nav__cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: 2px;
  opacity: 1 !important;
  transition: background 0.3s !important;
}
.nav__cta:hover { background: var(--gold-light) !important; }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }
.nav.scrolled .nav__hamburger span { background: var(--stone-dark); }

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: var(--stone-dark);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--cream); font-weight: 700;
  transition: color 0.3s;
}
.nav__mobile a:hover { color: var(--sand); }
.nav__mobile__close {
  position: absolute; top: 1.5rem; right: var(--gutter);
  background: none; border: none; color: var(--cream);
  font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh; min-height: 680px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: left center;
  transform: scale(1.06);
  transition: transform 7s var(--ease);
}
.hero__bg.loaded { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,25,23,0.88) 0%,
    rgba(28,25,23,0.42) 45%,
    rgba(28,25,23,0.12) 100%
  );
}
.hero__content {
  position: relative; z-index: 1;
  padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.hero__label { color: var(--sand); margin-bottom: 1.5rem; }
.hero__title { color: var(--white); margin-bottom: 2rem; max-width: 16ch; }
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(250,247,242,0.72);
  max-width: 48ch; margin-bottom: 2.75rem;
  font-weight: 300; line-height: 1.8;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 2.5rem; right: var(--gutter);
  writing-mode: vertical-rl;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 1rem;
}
.hero__scroll::after {
  content: '';
  display: block; width: 1px; height: 55px;
  background: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}
.btn svg { transition: transform 0.3s; flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: var(--gold-light); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn--outline:hover { background: rgba(255,255,255,0.09); border-color: var(--white); }
.btn--dark { background: var(--stone-dark); color: var(--white); }
.btn--dark:hover { background: var(--stone-mid); }
.btn--light { background: var(--cream); color: var(--stone-dark); }
.btn--light:hover { background: var(--sand-light); }

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-header--center { text-align: center; }
.section-header .label { margin-bottom: 0.9rem; display: block; }
.section-header h2 { margin-bottom: 1.25rem; }
.section-header p { font-size: 1.05rem; color: var(--stone-mid); max-width: 52ch; line-height: 1.85; }
.section-header--center p { margin: 0 auto; }
.section-header__line { display: block; width: 2.5rem; height: 2px; background: var(--gold); margin-top: 1.5rem; }
.section-header--center .section-header__line { margin: 1.5rem auto 0; }

/* ══════════════════════════════════════════
   INTRO / FILOSOFÍA
══════════════════════════════════════════ */
.intro { background: var(--cream); }
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}
.intro__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400; font-style: italic;
  line-height: 1.45; color: var(--stone-dark);
}
.intro__quote strong { font-weight: 700; font-style: normal; color: var(--gold); }
.intro__body { color: var(--stone-mid); font-size: 1.02rem; line-height: 1.88; }
.intro__body p + p { margin-top: 1.2rem; }
.intro__stats {
  display: flex; gap: 2.5rem;
  margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--sand);
}
.intro__stat span:first-child {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem; font-weight: 900;
  color: var(--stone-dark); line-height: 1;
}
.intro__stat span:last-child {
  display: block;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone-light); margin-top: 0.4rem;
}

/* ══════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════ */
.servicios { background: var(--sand-light); }
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.servicio-card {
  background: var(--cream);
  padding: clamp(2rem, 3.5vw, 3.25rem);
  transition: background 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.servicio-card:hover { background: var(--stone-dark); }
.servicio-card__icon {
  width: 44px; height: 44px;
  margin-bottom: 1.75rem;
  color: var(--gold);
  transition: color 0.35s;
}
.servicio-card:hover .servicio-card__icon { color: var(--sand); }
.servicio-card h3 { margin-bottom: 0.9rem; transition: color 0.35s; }
.servicio-card:hover h3 { color: var(--cream); }
.servicio-card p { font-size: 0.93rem; color: var(--stone-mid); line-height: 1.75; flex: 1; transition: color 0.35s; }
.servicio-card:hover p { color: var(--stone-light); }
.servicio-card__more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s, color 0.35s;
}
.servicio-card:hover .servicio-card__more { color: var(--sand); }
.servicio-card__more:hover { gap: 0.8rem; }

/* ══════════════════════════════════════════
   GALERÍA PREVIEW
══════════════════════════════════════════ */
.galeria-preview { background: var(--cream); }
.galeria-preview__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 300px 240px;
  gap: 6px;
}
.galeria-item { overflow: hidden; position: relative; cursor: pointer; }
.galeria-item:nth-child(1) { grid-column: 1 / 7;  grid-row: 1 / 3; }
.galeria-item:nth-child(2) { grid-column: 7 / 10; grid-row: 1 / 2; }
.galeria-item:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 2; }
.galeria-item:nth-child(4) { grid-column: 7 / 13;  grid-row: 2 / 3; }

.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.galeria-item:hover img { transform: scale(1.06); }

.galeria-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.72) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.galeria-item:hover .galeria-item__overlay { opacity: 1; }
.galeria-item__overlay span {
  font-family: var(--font-serif);
  color: var(--white); font-size: 1.05rem; font-weight: 700;
}

.galeria-preview__cta { text-align: center; margin-top: clamp(2.5rem, 4vw, 4rem); }

/* ══════════════════════════════════════════
   ESTADÍSTICAS
══════════════════════════════════════════ */
.stats { background: var(--stone-dark); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.stat-item {
  background: var(--stone-dark);
  padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900; line-height: 1;
  color: var(--sand); margin-bottom: 1rem;
  display: block;
}
.stat-item__label {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone-light);
}

/* ══════════════════════════════════════════
   ZONA DE TRABAJO
══════════════════════════════════════════ */
.zona { background: var(--sand-light); }
.zona__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.zona__visual {
  aspect-ratio: 4/3;
  overflow: hidden; border-radius: 2px;
  position: relative;
}
.zona__visual img { width: 100%; height: 100%; object-fit: cover; }
.zona__cities { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.7rem; }
.zona__cities li {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.95rem; color: var(--stone-mid);
}
.zona__cities li::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════ */
.cta-final { background: var(--stone-dark); text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/hero.png');
  background-size: cover; background-position: center;
  opacity: 0.06;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 { color: var(--cream); margin-bottom: 1.25rem; }
.cta-final p { color: var(--stone-light); font-size: 1.1rem; max-width: 42ch; margin: 0 auto 2.75rem; line-height: 1.85; }
.cta-final .btn { margin: 0 0.5rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: #111110;
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  color: var(--stone-mid);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer__logo { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--cream); margin-bottom: 0.9rem; }
.footer__tagline { font-size: 0.9rem; line-height: 1.75; max-width: 30ch; }
.footer h4 { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 1.25rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__links a { font-size: 0.88rem; color: var(--stone-mid); transition: color 0.3s; }
.footer__links a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; }
.footer__bottom a { color: var(--stone-mid); transition: color 0.3s; }
.footer__bottom a:hover { color: var(--cream); }

/* ══════════════════════════════════════════
   PÁGINAS INTERIORES — PAGE HERO
══════════════════════════════════════════ */
.page-hero {
  position: relative;
  height: 55vh; min-height: 420px;
  display: flex; align-items: flex-end;
  overflow: hidden; padding-top: 80px;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.82) 0%, rgba(28,25,23,0.3) 100%);
}
.page-hero__content {
  position: relative; z-index: 1;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.page-hero__content .label { color: var(--sand); margin-bottom: 1rem; display: block; }
.page-hero__content h1 { color: var(--white); font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.1; }

/* ══════════════════════════════════════════
   GALERÍA — página trabajos
══════════════════════════════════════════ */
.gallery-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.gallery-filter {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--sand);
  background: transparent; color: var(--stone-mid);
  cursor: pointer; border-radius: 2px;
  transition: all 0.3s;
}
.gallery-filter.active,
.gallery-filter:hover { background: var(--stone-dark); color: var(--cream); border-color: var(--stone-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-grid__item { aspect-ratio: 4/3; overflow: hidden; position: relative; cursor: pointer; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.gallery-grid__item:hover img { transform: scale(1.06); }
.gallery-grid__item__info {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,0.8) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
}
.gallery-grid__item:hover .gallery-grid__item__info { opacity: 1; }
.gallery-grid__item__info h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.3rem; }
.gallery-grid__item__info span { color: var(--sand); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; }

/* ══════════════════════════════════════════
   SERVICIOS — página servicios
══════════════════════════════════════════ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(4rem, 7vw, 7rem) 0;
  border-bottom: 1px solid var(--sand);
}
.service-block:last-child { border-bottom: none; }
.service-block--reverse { direction: rtl; }
.service-block--reverse > * { direction: ltr; }
.service-block__visual { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; }
.service-block__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.service-block__visual:hover img { transform: scale(1.04); }
.service-block__content .label { margin-bottom: 1rem; display: block; }
.service-block__content h2 { margin-bottom: 1.25rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.service-block__content p { font-size: 1rem; color: var(--stone-mid); line-height: 1.85; margin-bottom: 1rem; }
.service-block__features { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.65rem; }
.service-block__features li {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.92rem; color: var(--stone-mid);
}
.service-block__features li::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); flex-shrink: 0;
}

/* ══════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.about-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400; font-style: italic;
  line-height: 1.5; color: var(--stone-dark);
  margin-bottom: 2rem;
}
.about-body { color: var(--stone-mid); font-size: 1rem; line-height: 1.88; }
.about-body p + p { margin-top: 1.2rem; }
.about-sidebar { position: sticky; top: 6rem; }
.about-card {
  background: var(--stone-dark); color: var(--cream);
  padding: 2.5rem; border-radius: 2px; margin-bottom: 1rem;
}
.about-card .label { color: var(--stone-light); margin-bottom: 0.75rem; display: block; }
.about-card p { font-size: 0.92rem; line-height: 1.75; color: rgba(250,247,242,0.72); }
.about-card strong { color: var(--sand); font-size: 1.5rem; font-family: var(--font-serif); display: block; margin: 0.5rem 0; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: clamp(4rem, 7vw, 6rem); }
.value-card { background: var(--sand-light); padding: 2.5rem; }
.value-card__num {
  font-family: var(--font-serif); font-size: 3rem; font-weight: 900;
  color: var(--sand); line-height: 1; margin-bottom: 1rem;
}
.value-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.value-card p { font-size: 0.9rem; color: var(--stone-mid); line-height: 1.75; }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.contact-form { }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-mid); margin-bottom: 0.5rem; }
.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--stone-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--stone-mid);
  box-shadow: 0 0 0 3px rgba(87,83,78,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2357534E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }

.form-msg {
  padding: 0.9rem 1rem; border-radius: 2px; font-size: 0.9rem;
  line-height: 1.5; margin-bottom: 1rem;
}
.form-msg--ok    { background: #f0faf0; color: #2d6a2d; border: 1px solid #b7ddb7; }
.form-msg--error { background: #fdf2f2; color: #8b2020; border: 1px solid #e8b4b4; }

.contact-info { }
.contact-info__item { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2rem; }
.contact-info__icon { width: 44px; height: 44px; background: var(--sand-light); border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.contact-info__text strong { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 0.3rem; }
.contact-info__text span { font-size: 0.95rem; color: var(--stone-dark); }
.contact-note { margin-top: 2.5rem; padding: 1.5rem; background: var(--sand-light); border-radius: 2px; border-left: 3px solid var(--gold); }
.contact-note p { font-size: 0.88rem; color: var(--stone-mid); line-height: 1.7; }

/* ══════════════════════════════════════════
   CHECKBOX PRIVACIDAD
══════════════════════════════════════════ */
.form-check {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--stone-dark); cursor: pointer;
}
.form-check label {
  font-size: 0.88rem; color: var(--stone-mid); line-height: 1.6; cursor: pointer;
}
.form-check a { color: var(--stone-dark); text-decoration: underline; text-underline-offset: 3px; }
.form-check a:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   PÁGINAS LEGALES
══════════════════════════════════════════ */
.legal-content { max-width: 800px; }
.legal-content h2 {
  font-family: var(--font-serif); font-size: 1.35rem;
  color: var(--stone-dark); margin: 2.75rem 0 1rem;
  padding-top: 2.75rem; border-top: 1px solid var(--sand);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p { margin-bottom: 1rem; color: var(--stone-mid); line-height: 1.88; font-size: 0.97rem; }
.legal-content ul { margin: 0.75rem 0 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.45rem; }
.legal-content ul li { list-style: disc; color: var(--stone-mid); font-size: 0.97rem; line-height: 1.7; }
.legal-content strong { color: var(--stone-dark); font-weight: 600; }
.legal-content .legal-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.legal-content .legal-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--sand-light); color: var(--stone-mid); vertical-align: top; }
.legal-content .legal-table td:first-child { font-weight: 600; color: var(--stone-dark); white-space: nowrap; width: 35%; }

/* Footer legal links */
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.76rem; color: var(--stone-mid); transition: color 0.3s; }
.footer__legal a:hover { color: var(--cream); }

/* ══════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.94);
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox__wrap {
  max-width: calc(100vw - 140px); max-height: calc(100vh - 100px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 100px);
  object-fit: contain; display: block;
}
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: rgba(255,255,255,0.55);
  font-size: 1.4rem; cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s; line-height: 1;
}
.lightbox__close:hover { color: #fff; }
.lightbox__prev,
.lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.45);
  font-size: 4rem; cursor: pointer; padding: 0.75rem 1.25rem;
  line-height: 1; transition: color 0.2s; font-weight: 300;
  user-select: none;
}
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__prev:hover, .lightbox__next:hover { color: #fff; }
.lightbox__counter {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  font-size: 0.73rem; color: rgba(255,255,255,0.38); letter-spacing: 0.14em;
  font-family: var(--font-sans); white-space: nowrap;
}

/* ══════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .intro__grid    { grid-template-columns: 1fr; }
  .zona__grid     { grid-template-columns: 1fr; }
  .about-grid     { grid-template-columns: 1fr; }
  .about-sidebar  { position: static; }
  .contact-grid   { grid-template-columns: 1fr; }
  .service-block  { grid-template-columns: 1fr; }
  .service-block--reverse { direction: ltr; }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer__grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }

  .servicios__grid { grid-template-columns: 1fr; }
  .stats__grid     { grid-template-columns: 1fr; }
  .values-grid     { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .footer__grid    { grid-template-columns: 1fr; }
  .footer__bottom  { flex-direction: column; gap: 0.5rem; text-align: center; }

  .galeria-preview__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 160px 180px;
  }
  .galeria-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .galeria-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .galeria-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .galeria-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }

  .hero__scroll { display: none; }
}
