/* =============================================
   DEKORERE — Hoja de estilos principal
   Estilo: Elegante y minimalista
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* El atributo hidden siempre debe ocultar (evita que un display:flex/grid lo anule) */
[hidden] { display: none !important; }

:root {
  --black:   #0c0a09;
  --white:   #ffffff;
  --gray-50: #faf9f7;
  --gray-100:#ece9e4;
  --gray-400:#a8a29e;
  --gray-600:#57534e;
  --gold:    #b08d57;

  --font-serif: 'Bodoni Moda', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  --radius: 2px;
  --transition: 0.25s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --header-h: 84px;            /* altura aproximada de la cabecera fija */
}

html { scroll-behavior: smooth; }

/* La cabecera fija no debe tapar el destino de las anclas (#seccion) */
:where([id]) { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 760px; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
}
.btn--primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--ghost:hover {
  background: var(--black);
  color: var(--white);
}
.btn--light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn--light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn--full { width: 100%; text-align: center; }

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
/* Foco visible accesible en navegación y acciones de cabecera */
.nav__link:focus-visible,
.nav__dropdown-toggle:focus-visible,
.btn--nav:focus-visible,
.lang-switch__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; }
/* La cabecera nivela el logo un poco más a la izquierda (lo separa de "Inicio") */
.header .logo { margin-left: -8px; }
.logo-img {
  height: 27px;
  width: auto;
  aspect-ratio: 290 / 52;   /* proporción real del PNG → reserva espacio, sin saltos (CLS) */
  display: block;
  transition: height var(--transition);
}
/* Logo PNG con transparencia (grafismo negro). Sobre el hero oscuro: en blanco */
.header .logo-img {
  filter: invert(1);
}
/* Header con scroll (fondo claro): logo negro original, un punto más pequeño */
.header.scrolled .logo-img {
  filter: none;
  height: 24px;
}

.nav { display: flex; align-items: center; gap: 26px; }

/* Selector de idioma (inyectado por JS dentro de .nav) */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch__btn {
  background: none; border: 0; padding: 4px 5px; cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  color: rgba(255,255,255,0.55); transition: color var(--transition);
}
.lang-switch__btn:hover { color: rgba(255,255,255,0.95); }
.lang-switch__btn.is-active { color: #fff; }
.header.scrolled .lang-switch__btn,
.header--solid .lang-switch__btn { color: var(--gray-400); }
.header.scrolled .lang-switch__btn:hover,
.header.scrolled .lang-switch__btn.is-active,
.header--solid .lang-switch__btn:hover,
.header--solid .lang-switch__btn.is-active { color: var(--black); }
.nav__link,
.nav__dropdown-toggle {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link::after,
.nav__dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__dropdown-toggle:hover::after,
.nav__link:focus-visible::after { width: 100%; }
.nav__link:hover,
.nav__dropdown-toggle:hover { color: var(--white); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after { width: 100%; }

.header.scrolled .nav__link,
.header.scrolled .nav__dropdown-toggle { color: var(--gray-600); }
.header.scrolled .nav__link:hover,
.header.scrolled .nav__dropdown-toggle:hover,
.header.scrolled .nav__link[aria-current="page"] { color: var(--black); }

/* botón "Solicitar presupuesto" dentro del nav */
.btn--nav {
  padding: 9px 20px;
  font-size: 12px;
  background: var(--gold);
  color: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
}
.btn--nav:hover { background: transparent; color: var(--white); }
.header.scrolled .btn--nav { color: var(--white); }
.header.scrolled .btn--nav:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* --- DROPDOWN DE PRODUCTOS --- */
.nav__item { position: relative; }
.nav__dropdown-toggle { background: none; border: none; cursor: pointer; }
.nav__dropdown-toggle .chevron {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
}
.nav__dropdown-toggle[aria-expanded="true"] .chevron { transform: rotate(-135deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 110;
}
.nav__item:hover .nav__dropdown,
.nav__dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  text-transform: none;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav__dropdown a:hover,
.nav__dropdown a:focus-visible { background: var(--gray-50); color: var(--black); }
.nav__dropdown a.is-featured {
  color: var(--black);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-radius: 0;
}
@media (prefers-reduced-motion: reduce) {
  .nav__dropdown { transition: none; }
}

/* --- HEADER SÓLIDO EN PÁGINAS INTERNAS (sin hero) --- */
.header--solid {
  position: sticky;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}
.header--solid .logo-img { filter: none; }
.header--solid .nav__link,
.header--solid .nav__dropdown-toggle { color: var(--gray-600); }
.header--solid .nav__link:hover,
.header--solid .nav__dropdown-toggle:hover,
.header--solid .nav__link[aria-current="page"] { color: var(--black); }
.header--solid .nav-toggle span { background: var(--black); }
.header--solid .btn--nav { color: var(--white); }

/* --- MIGAS DE PAN --- */
.breadcrumb { font-size: 13px; color: var(--gray-400); padding: 18px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb [aria-current="page"] { color: var(--black); }

/* --- HERO DE PÁGINA INTERNA --- */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  margin-top: 0;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  /* capa localizada: oscurece la izquierda (texto) y deja ver la fotografía a la derecha */
  background: linear-gradient(
    90deg,
    rgba(15,15,14,0.82) 0%,
    rgba(15,15,14,0.6) 40%,
    rgba(15,15,14,0.3) 72%,
    rgba(15,15,14,0.08) 92%,
    rgba(15,15,14,0) 100%
  );
}
.page-hero__content { position: relative; z-index: 1; padding: 64px 0; }
.page-hero__tag {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600; line-height: 1.08; color: var(--white);
  margin-bottom: 18px; max-width: 720px;
  text-shadow: 0 1px 2px rgba(8,7,6,0.55), 0 2px 24px rgba(8,7,6,0.45);
}
.page-hero__sub {
  font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.9);
  max-width: 620px; line-height: 1.6;
  text-shadow: 0 1px 2px rgba(8,7,6,0.5), 0 1px 18px rgba(8,7,6,0.4);
}

/* --- BLOQUES DE CONTENIDO (páginas de categoría) --- */
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; color: var(--gray-600); }
.prose h2 { font-family: var(--font-serif); font-size: clamp(24px,3vw,34px); font-weight: 600; margin-bottom: 18px; }
.prose h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 8px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  padding: 28px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: var(--white);
}
.feature-card h3 {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600; margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--gray-600); }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13px; letter-spacing: 0.03em;
  padding: 8px 16px;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  color: var(--gray-600);
  background: var(--white);
}

/* --- GALERÍA --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: var(--radius);
}

/* --- FAQ (acordeón) --- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--gray-100); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; font-size: 24px; color: var(--gold); font-family: var(--font-sans);
  transition: transform var(--transition);
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p { padding: 0 0 22px; color: var(--gray-600); max-width: 680px; }

/* --- CTA BAND --- */
.cta-band { background: var(--black); color: var(--white); text-align: center; }
.cta-band .section__title { color: var(--white); }
.cta-band p { color: var(--gray-400); max-width: 560px; margin: 0 auto 32px; }

/* --- DIRECTORIO DE PRODUCTOS (tarjetas clicables) --- */
.cat-card--link { position: relative; }
.cat-card--link .stretched { position: absolute; inset: 0; z-index: 1; }
.cat-card--link:focus-within { box-shadow: var(--shadow); outline: 2px solid var(--gold); outline-offset: 2px; }
.cat-card__cta {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--black);
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.cat-card__cta::after { content: '→'; color: var(--gold); transition: transform var(--transition); }
.cat-card--link:hover .cat-card__cta::after { transform: translateX(4px); }

/* --- RESPONSIVE --- */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}
.header.scrolled .nav-toggle span { background: var(--black); }

/* --- HERO --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;                       /* fallback */
  min-height: clamp(680px, 84svh, 920px);
  background-color: #14110f;
  --hero-slide: 900ms;                     /* duración del desplazamiento (config) */
}
/* === CARRUSEL DEL HERO ============================================
   Una sola fotografía a pantalla completa que se desliza lateralmente.
   Todas las diapositivas ocupan exactamente el 100 % del hero. */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  touch-action: pan-y;          /* el scroll vertical lo gestiona el navegador */
}
.hero__track {
  display: flex;
  height: 100%;
  transition: transform var(--hero-slide, 900ms) cubic-bezier(.65, 0, .35, 1);
  will-change: transform;
}
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Degradado común: protege el texto a la izquierda sin apagar la fotografía.
   La intensidad del velo se modula por imagen vía --hero-shade (lo fija el JS
   según la luminosidad de cada foto) y transiciona al ritmo del desplazamiento. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--hero-shade, 0.82);
  transition: opacity 900ms cubic-bezier(.65,0,.35,1);
  background: linear-gradient(
    90deg,
    rgba(12,11,10,1) 0%,
    rgba(12,11,10,0.74) 32%,
    rgba(12,11,10,0.28) 62%,
    rgba(12,11,10,0.05) 100%
  );
}
/* --- HUD: categoría actual + controles --- */
.hero__hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 3.5vh, 36px);
  z-index: 4;
}
.hero__hud[hidden] { display: none; }
.hero__hud-inner {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  pointer-events: none;
}
.hero__hud-inner > * { pointer-events: auto; }
/* Categoría actual (enlace a su página) */
.hero__cat {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  text-decoration: none;
  color: var(--white);
}
.hero__cat-name {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}
.hero__cat-go {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--transition), transform var(--transition);
}
.hero__cat:hover .hero__cat-go,
.hero__cat:focus-visible .hero__cat-go { opacity: 1; transform: none; }
.hero__cat:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
/* Botones de control */
.hero__controls { display: flex; align-items: center; gap: 6px; }
.hero__ctrl {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: rgba(12,11,10,0.28);
  color: var(--white);
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.hero__ctrl svg { width: 22px; height: 22px; }
.hero__ctrl rect, .hero__ctrl .ico--play path { fill: currentColor; }
.hero__ctrl:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.hero__ctrl:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero__ctrl--play .ico--play { display: none; }
.hero__ctrl--play.is-paused .ico--pause { display: none; }
.hero__ctrl--play.is-paused .ico--play { display: block; }
/* Indicadores: líneas finas */
.hero__dots { display: flex; align-items: center; gap: 7px; padding: 0 6px; }
.hero__dot {
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255,255,255,0.38);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}
.hero__dot:hover { background: rgba(255,255,255,0.65); }
.hero__dot[aria-current="true"] { background: var(--gold); width: 30px; }
.hero__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Reservar la esquina inferior derecha para el botón de WhatsApp */
@media (max-width: 1320px) {
  .hero__hud-inner { padding-right: 72px; }
}
.hero__inner {
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-top: clamp(7rem, 12vh, 10rem);
  padding-bottom: clamp(3.5rem, 7vh, 6rem);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: heroReveal 700ms ease both;
}
.hero__tag {
  font-family: var(--font-sans);
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 clamp(18px, 2vw, 26px);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 clamp(20px, 2.4vw, 30px);
  text-wrap: balance;
}
.hero__sub {
  max-width: 540px;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.05vw, 1.13rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  margin: 0 0 clamp(26px, 3vw, 38px);
}
.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.hero__primary { padding: 14px 26px; font-size: 12.5px; }
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.hero__link:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.hero__arrow { transition: transform var(--transition); }
.hero__link:hover .hero__arrow { transform: translateX(4px); }
.hero__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content { animation: none; }
  .hero__track { transition: none; }
  .hero__overlay { transition: none; }
}

/* --- SECTIONS --- */
.section { padding: 78px 0; }
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--gray { background: var(--gray-50); }

.section__head { text-align: center; margin-bottom: 44px; }
.section__head--light .section__title { color: var(--white); }
.section__head--light .section__sub   { color: var(--gray-400); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.section__sub {
  font-size: 16px;
  color: var(--gray-600);
  font-weight: 300;
}

/* --- GRID CATEGORÍAS --- */
.grid-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.cat-card:hover { box-shadow: var(--shadow); }

.cat-card__img {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  transition: transform 0.4s ease;
  overflow: hidden;
}
.cat-card:hover .cat-card__img { transform: scale(1.03); }

.cat-card__body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-card__body h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}
.cat-card__body p {
  font-size: 14px;
  color: var(--gray-600);
  flex: 1;
}
.cat-card__body .btn { align-self: flex-start; }

/* --- VALORES --- */
.grid-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.value-item { text-align: center; }
.value-item__icon {
  display: block;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.value-item h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.value-item p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* --- FORMULARIO --- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; gap: 20px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--black); }
.form__group input.error,
.form__group select.error,
.form__group textarea.error { border-color: #c0392b; }
.form__error { font-size: 12px; color: #c0392b; min-height: 16px; }
.form__group textarea { resize: vertical; }
/* Casillas y radios: mantener apariencia nativa (la regla de arriba las dejaba sin marca) */
.form__group input[type="checkbox"],
.form__group input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  accent-color: var(--gold, #b08d57);
  cursor: pointer;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
}

.form__legal {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
}
.form__legal a { text-decoration: underline; }

.form__success {
  display: none;
  padding: 18px 24px;
  background: #f0f9f0;
  border: 1px solid #b2d8b2;
  border-radius: var(--radius);
  font-size: 14px;
  color: #2d7a2d;
  text-align: center;
}
.form__success.visible { display: block; }

/* --- CONTACTO --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info .section__title { margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list strong {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-list span { font-size: 15px; color: var(--gray-600); }
.contact-list a:hover { color: var(--black); }

.map-frame {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.05);
  transition: filter var(--transition);
}
.map-frame:hover { filter: grayscale(0); }

/* --- FOOTER --- */
.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .logo-img { height: 28px; margin-bottom: 16px; }
.footer__col h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__col p { font-size: 14px; color: var(--gray-600); max-width: 320px; }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__social svg { flex-shrink: 0; }
.footer__social:hover { color: var(--gold); }
.footer__social:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a,
.footer__col ul span { font-size: 14px; color: var(--gray-600); transition: color var(--transition); }
.footer__col ul a:hover { color: var(--black); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.footer__bottom p { font-size: 13px; color: var(--gray-400); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--gray-400); transition: color var(--transition); }
.footer__links a:hover { color: var(--black); }

/* --- BANNER DE COOKIES --- */
.cookie-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 120;
  max-width: 720px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 13px; color: var(--gray-600); flex: 1; min-width: 240px; line-height: 1.6; }
.cookie-banner p a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 22px; font-size: 12px; }

/* --- LECTURA LEGAL --- */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin: 32px 0 14px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.legal p, .legal li { font-size: 15px; color: var(--gray-600); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal .note {
  background: var(--gray-50);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  font-size: 14px;
  margin: 18px 0;
}

/* --- BOTONES DE CONTACTO --- */
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.map-consent {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 14px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--gray-600);
  font-size: 14px;
}
/* el atributo hidden debe ganar al display:flex (si no, el aviso queda visible con el mapa) */
.map-consent[hidden] { display: none; }

/* --- WHATSAPP FLOTANTE --- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float:hover { transition: none; transform: none; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-cats { grid-template-columns: repeat(2, 1fr); }
  .grid-values { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  :root { --header-h: 70px; }

  .nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 99;
    overflow-y: auto;
    padding: 90px 24px 40px;
  }
  .nav.open { display: flex; }
  .nav__link,
  .nav__dropdown-toggle { font-size: 20px; color: var(--white); }
  .header.scrolled .nav__link,
  .header.scrolled .nav__dropdown-toggle,
  .header--solid .nav__link,
  .header--solid .nav__dropdown-toggle { color: var(--white); }

  /* dropdown en móvil: se despliega en flujo, no flotante */
  .nav__item { width: 100%; text-align: center; }
  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 14px;
  }
  .nav__dropdown.open { display: flex; visibility: visible; transform: none; }
  .nav__dropdown a { color: rgba(255,255,255,0.8); text-align: center; }
  .nav__dropdown a.is-featured { color: var(--white); border-color: rgba(255,255,255,0.2); }
  .nav__dropdown a:hover,
  .nav__dropdown a:focus-visible { background: rgba(255,255,255,0.08); color: var(--white); }
  .btn--nav { margin-top: 8px; }

  .lang-switch { margin-top: 8px; gap: 10px; }
  .lang-switch__btn,
  .header.scrolled .lang-switch__btn,
  .header--solid .lang-switch__btn { color: rgba(255,255,255,0.65); font-size: 16px; }
  .lang-switch__btn.is-active,
  .header.scrolled .lang-switch__btn.is-active,
  .header--solid .lang-switch__btn.is-active { color: #fff; }

  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .header.scrolled .nav-toggle.open span,
  .header--solid .nav-toggle.open span { background: var(--white); }

  .feature-grid, .feature-grid--2, .gallery { grid-template-columns: 1fr; }
  .page-hero__content { padding: 48px 0; }
  .page-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(15,15,14,0.55) 0%,
      rgba(15,15,14,0.7) 60%,
      rgba(15,15,14,0.86) 100%
    );
  }

  /* Hero en tablet/móvil: degradado vertical y texto a ancho completo */
  .hero { min-height: 720px; min-height: 88svh; }
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(15,15,14,0.51) 0%,
      rgba(15,15,14,0.78) 55%,
      rgba(15,15,14,1) 100%
    );
  }
  .hero__inner { padding-top: clamp(6rem, 16vh, 8rem); align-items: flex-end; }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.02; }
  .hero__sub { max-width: 100%; font-size: 16px; }
  /* En móvil el carrusel se navega por gesto horizontal + avance automático:
     ocultamos el HUD para mantener la imagen limpia y dejar libre el botón de WhatsApp */
  .hero__hud { display: none; }

  .grid-cats { grid-template-columns: 1fr; }
  .grid-values { grid-template-columns: 1fr 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}

@media (max-width: 480px) {
  .grid-values { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.1rem, 10vw, 3rem); letter-spacing: -0.015em; }
}
