/* ============================================================= */
/*  Subasta Los Bermejales — hoja de estilo única                */
/*  Landing inmersiva scroll-video · mobile-first                */
/* ============================================================= */

/* ---------- Fuentes auto-hospedadas ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Paleta cálida / neutra premium */
  --bone:        #f5f0e8;
  --cream:       #ece4d7;
  --sand:        #d9ccb8;
  --charcoal:    #2a2622;
  --charcoal-80: rgba(42, 38, 34, 0.8);
  --bronze:      #a9834f;
  --bronze-dark: #8a6a3d;
  --white:       #ffffff;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1100px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

/* ============================================================= */
/*  0 · HERO                                                      */
/* ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 6vh, 56px) 24px;
  color: var(--bone);
}

/* Placeholder del hero (gradiente cálido hasta tener vídeo/imagen) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(169, 131, 79, 0.35), transparent 60%),
    linear-gradient(160deg, #4a3f33 0%, #2a2622 55%, #1a1714 100%);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

.hero__inner { position: relative; z-index: 1; max-width: 720px; }

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
}

.hero__deadline {
  margin: 0.35rem 0 0;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  letter-spacing: 0.02em;
  color: var(--sand, #c9b998);
}
.hero__deadline strong { font-weight: 600; color: inherit; }
.hero__deadline span { opacity: 0.75; white-space: nowrap; }


.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 13vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero__location {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 500;
  color: var(--sand);
  margin-top: 0.6rem;
}

.hero__area {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}
.hero__area span { font-size: 0.55em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); }
.hero__area small { font-size: 0.5em; color: rgba(245, 240, 232, 0.7); letter-spacing: 0.05em; }

/* El cuadro del precio es un enlace a la sección "Todo lo que incluye":
   necesita estados de hover y foco, y quitarle el subrayado de enlace. */
.hero__price {
  margin-top: 1.6rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(217, 204, 184, 0.4);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.1s var(--ease);
}
.hero__price:hover,
.hero__price:focus-visible {
  border-color: rgba(232, 201, 150, 0.85);
  background: rgba(169, 131, 79, 0.16);
}
.hero__price:focus-visible { outline: 2px solid #e8c996; outline-offset: 3px; }
.hero__price:active { transform: translateY(1px); }
.hero__price-cta {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #e8c996;
}
.hero__price-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
}
.hero__price-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--bone);
}

/* Lista de pujas (bajo el precio de salida) */
.hero__bids {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.hero__bids[hidden] { display: none; }
.hero__bids-label {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
}
.hero__bids-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: min(45vh, 16rem);
  overflow-y: auto;
  padding-right: 4px;
}
.hero__bid-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.15rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.14);
}
.hero__bid-row:last-child { border-bottom: none; }
/* Puntos (verde/hueco) a la derecha de cada fila */
.hero__bid-row .live-dot,
.hero__bid-row .hero__bid-dot { margin-left: auto; }
.hero__bid-rank {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--sand);
  min-width: 1.8em;
  text-align: right;
  flex-shrink: 0;
}
.hero__bid-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  color: #e8c996;
  min-width: 5.5ch;
  text-align: right;
}
/* Alias y fecha apilados: si fueran hermanos directos de la fila, en móvil
   la fecha empujaría el punto de estado fuera de la caja. */
.hero__bid-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.hero__bid-name {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.8);
  letter-spacing: 0.02em;
}
.hero__bid-date {
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.5);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero__bid-dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.28);
  flex-shrink: 0;
}
.live-dot { flex-shrink: 0; }

/* Punto verde "en vivo" con pulso de opacidad en bucle */
.live-dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #35c76a;
  box-shadow: 0 0 10px rgba(53, 199, 106, 0.7);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.hero__note {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.75);
  max-width: 34ch;
  margin-inline: auto;
}

/* Indicador de scroll (en el flujo, tras el contenido → nunca se solapa) */
.scroll-cue {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.8rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.8);
}
.scroll-cue__arrow {
  width: 22px; height: 34px;
  border: 1.5px solid rgba(245, 240, 232, 0.6);
  border-radius: 12px;
  position: relative;
}
.scroll-cue__arrow::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 7px;
  background: var(--bone);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  35%  { opacity: 1; }
  70%  { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ============================================================= */
/*  1–5 · SEGMENTOS SCROLL-VIDEO                                  */
/* ============================================================= */
/* Altura alta = pista de scroll. JS lee data-height y la fija.   */
.scroll-segment {
  position: relative;
  height: 320vh; /* fallback; JS lo sobrescribe con data-height */
}

.segment-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Placeholder con gradiente cálido por segmento (hasta tener vídeo) */
.segment-placeholder {
  position: absolute; inset: 0; z-index: 0;
}
.segment-placeholder--cancela { background: linear-gradient(155deg, #6f7d5a 0%, #45503a 60%, #2f3628 100%); }
.segment-placeholder--portal  { background: linear-gradient(155deg, #8a7a63 0%, #574a3a 60%, #332c22 100%); }
.segment-placeholder--piso    { background: linear-gradient(155deg, #b8a184 0%, #8a7259 55%, #4f4030 100%); }
.segment-placeholder--azotea  { background: linear-gradient(160deg, #7fa2b8 0%, #5f7f96 45%, #3a4a58 100%); }
.segment-placeholder--garaje  { background: linear-gradient(155deg, #6a6a70 0%, #47474d 55%, #2a2a2e 100%); }

.segment-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Scrim para contraste AA del texto sobre vídeo/gradiente */
.segment-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 32%,
    rgba(0, 0, 0, 0.08) 60%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
}

/* ---------- Overlays ---------- */
.segment-overlays {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 6vw, 72px);
  padding-bottom: clamp(56px, 10vh, 120px);
}

.overlay {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(56px, 10vh, 120px);
  max-width: 640px;
  color: var(--bone);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.overlay.is-visible { opacity: 1; transform: translateY(0); }

.overlay__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.7rem;
}
.overlay__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 5.2vw, 2.6rem);
  line-height: 1.18;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.overlay__sub {
  margin-top: 0.7rem;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  color: rgba(245, 240, 232, 0.9);
  max-width: 52ch;
}

/* Badge destacado (agua caliente solar) */
.overlay__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding: 0.7rem 1.1rem;
  background: rgba(169, 131, 79, 0.92);
  color: #1c1710;
  font-weight: 600;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  line-height: 1.35;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.overlay__badge-icon { font-size: 1.15em; }

/* Característica transversal (A/C) con icono grande */
.overlay--feature .overlay__feature-icon {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  color: var(--sand);
  margin-bottom: 0.4rem;
  line-height: 1;
}

/* ---------- Barra de progreso por segmento ---------- */
.segment-progress {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 4;
}
.segment-progress__fill {
  height: 100%; width: 0%;
  background: var(--bronze);
  transition: width 0.06s linear;
}

/* ============================================================= */
/*  6 · CIERRE + FORMULARIO                                       */
/* ============================================================= */
/* ============================================================= */
/*  GALERÍA DE FOTOS                                              */
/*  Vertical a pantalla completa en móvil; en escritorio la foto */
/*  se centra nítida y un fondo difuminado rellena los lados.    */
/* ============================================================= */
.photo-journey { background: #14110e; }
.pslide {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #14110e;
}
.pslide__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(34px) brightness(0.5);
}
.pslide__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* Fotos duales: vertical (móvil) / horizontal (escritorio), a sangre */
.pslide--dual picture { position: absolute; inset: 0; }
.pslide__cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Pie de foto (texto de la estancia sobre la imagen) */
.pslide__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(20px, 5vw, 52px);
  padding-top: 18vh;
  color: var(--bone);
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.32) 45%, transparent 100%);
}
.pslide__caption .overlay__text { text-shadow: 0 2px 20px rgba(0,0,0,0.55); }
.overlay__note {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(245,240,232,0.55);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--bone);
  background: rgba(0,0,0,0.25);
}
.pslide__caption .overlay__sub { color: rgba(245,240,232,0.92); }

/* Placeholder de secciones que aún no tienen fotos */
.pslide--placeholder { display: flex; align-items: center; justify-content: center; }
.ph-cancela { background: linear-gradient(155deg,#6f7d5a,#45503a 60%,#2f3628); }
.ph-portal  { background: linear-gradient(155deg,#8a7a63,#574a3a 60%,#332c22); }
.ph-azotea  { background: linear-gradient(160deg,#7fa2b8,#5f7f96 45%,#3a4a58); }
.ph-garaje  { background: linear-gradient(155deg,#6a6a70,#47474d 55%,#2a2a2e); }
.pslide__caption--center {
  position: static; background: none;
  padding: clamp(28px, 6vw, 60px);
  text-align: center; max-width: 640px; color: var(--bone);
}
.pslide__soon {
  display: inline-block; margin: 0.9rem 0 1.5rem;
  padding: 0.4rem 1.05rem; border: 1px solid rgba(245,240,232,0.4);
  border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sand);
}
.pslide__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.95rem; }
.pslide__points li {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem); line-height: 1.3;
  color: var(--bone);
}

.closing {
  background: var(--bone);
  padding: clamp(56px, 10vw, 120px) 24px;
}
.closing__inner { max-width: var(--maxw); margin: 0 auto; }

.closing__eyebrow {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.8rem;
}
.closing__title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Tarjeta resumen */
.summary {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}
.summary__item {
  background: var(--cream);
  padding: 1.4rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.summary__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--charcoal);
}
.summary__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-dark);
}

/* ---------- Propuesta de puja (dentro del formulario) ---------- */
.field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--bone);
  border: 1px solid var(--sand);
  border-radius: 9px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  appearance: none;
  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 fill='%238a6a3d' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(169, 131, 79, 0.18);
}

/* Campo con sufijo € (cantidad libre) */
.field__input-wrap { position: relative; display: flex; }
.field__input-wrap input { width: 100%; padding-right: 2.2rem; }
/* ---- Teléfono con prefijo de país ---------------------------------- */
.tel { position: relative; display: flex; align-items: stretch; gap: 0.5rem; }
.tel input[type="tel"] { flex: 1 1 auto; min-width: 0; }
.tel__pais {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;      /* el prefijo nunca se parte */
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.tel__pais:hover { border-color: var(--bronze); }
.tel__pais:focus-visible { outline: 2px solid var(--bronze-dark); outline-offset: 2px; }
.tel__pais[aria-expanded="true"] { border-color: var(--bronze); background: rgba(169, 131, 79, 0.08); }
.tel__pais-flecha { font-size: 0.7rem; color: #9a9184; }
/* El panel envuelve buscador y lista. Con 248 países la lista necesita
   scroll propio; sin él, el desplegable se saldría de la pantalla. */
.tel__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  width: min(20rem, calc(100vw - 48px));
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(42, 38, 34, 0.16);
  overflow: hidden;
}
.tel__buscar {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--sand);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.tel__buscar:focus { outline: none; background: rgba(169, 131, 79, 0.06); }
.tel__lista {
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tel__vacio {
  margin: 0;
  padding: 0.9rem;
  text-align: center;
  font-size: 0.88rem;
  color: #9a9184;
}
.tel__opcion {
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.tel__opcion:hover,
.tel__opcion:focus,
.tel__opcion[aria-selected="true"] { background: rgba(169, 131, 79, 0.14); outline: none; }

.field__suffix {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9a9184;
  font-weight: 600;
  pointer-events: none;
}
.field__hint { font-size: 0.78rem; color: #9a9184; }

/* ---------- Formulario ---------- */
.contact {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: clamp(1.6rem, 5vw, 2.6rem);
  box-shadow: 0 20px 60px rgba(42, 38, 34, 0.08);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.contact__intro { color: #6b6255; font-size: 0.95rem; margin-bottom: 1.8rem; }

/* Trampa anti-bot: se saca de la pantalla en vez de usar display:none porque
   algunos bots ignoran los campos ocultos de forma evidente. Para el usuario es
   invisible igualmente, y tabindex="-1" la deja fuera del tabulador. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
/* El atributo hidden debe ganar a display:flex (si no, el campo se ve siempre) */
.field[hidden] { display: none !important; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); }
.field__optional { color: #9a9184; font-weight: 400; }

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--bone);
  border: 1px solid var(--sand);
  border-radius: 9px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(169, 131, 79, 0.18);
}
.field textarea { resize: vertical; min-height: 96px; }

.field--invalid input,
.field--invalid textarea { border-color: #b4462f; }

.field__error {
  font-size: 0.78rem;
  color: #b4462f;
  min-height: 1em;
}

/* Checkbox RGPD */
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.field--check input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--bronze);
  flex-shrink: 0;
}
.field--check label { font-size: 0.82rem; font-weight: 400; color: #6b6255; line-height: 1.45; flex: 1; }
.field--check a { color: var(--bronze-dark); text-decoration: underline; }
.field--check a:hover { color: var(--bronze); }
.field--check .field__error { flex-basis: 100%; }

.contact__submit {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone);
  background: var(--charcoal);
  border: none;
  border-radius: 9px;
  padding: 0.95rem 1.2rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.1s var(--ease);
}
.contact__submit:hover { background: var(--bronze-dark); }
.contact__submit:active { transform: translateY(1px); }
.contact__submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Secundario y sobre fondo claro: contorno en vez de relleno, para que no
   compita con el botón de enviar la puja. */
.contact__back {
  display: block;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--sand);
  border-radius: 9px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.1s var(--ease);
}
.contact__back:hover,
.contact__back:focus-visible {
  background: rgba(169, 131, 79, 0.1);
  border-color: var(--bronze);
}
.contact__back:focus-visible { outline: 2px solid var(--bronze-dark); outline-offset: 2px; }
.contact__back:active { transform: translateY(1px); }

.contact__status {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}
.contact__status.is-ok { color: var(--bronze-dark); }
.contact__status.is-err { color: #b4462f; }

.closing__legal {
  text-align: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.78rem;
  color: #9a9184;
}
/* Sin esto los enlaces del pie salen del azul por defecto del navegador y
   desentonan con el botón de Cookies, que hereda el color al ser un <button>. */
.closing__legal a {
  color: inherit;
  text-decoration: underline;
}
.closing__legal a:hover { color: var(--bronze); }

/* ============================================================= */
/*  Responsive                                                    */
/* ============================================================= */
@media (min-width: 620px) {
  .summary { grid-template-columns: repeat(5, 1fr); }
}

/* Táctil: mantenemos el efecto (skill scroll-video-touch), la altura
   la ajusta el JS con un factor. Aquí solo aseguramos el sticky. */
@media (pointer: coarse) {
  .segment-sticky { position: sticky; top: 0; }
}

/* ============================================================= */
/*  Accesibilidad · movimiento reducido                          */
/*  Fallback: sin sticky, contenido apilado y legible.           */
/* ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue__arrow::after { animation: none; }
  .live-dot { animation: none; }

  .scroll-segment { height: auto !important; }
  .segment-sticky {
    position: relative;
    height: auto;
    min-height: 70vh;
    align-items: stretch;
  }
  .segment-overlays {
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
  }
  .overlay {
    position: relative;
    left: auto; right: auto; bottom: auto;
    opacity: 1;
    transform: none;
  }
}

/* =============================================================
   Banner de consentimiento de cookies
   Barra compacta: el texto largo vive plegado tras "Más información",
   para no tapar la web con un muro de texto legal.
   ============================================================= */
.cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--charcoal);
  color: var(--bone);
  border-top: 1px solid rgba(217, 204, 184, 0.25);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.28);
  font-family: var(--font-body);
}
.cc__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.95rem 24px 1.05rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.4rem;
}
.cc__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.9);
}
.cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cc__btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.1s var(--ease);
}
.cc__btn:active { transform: translateY(1px); }
.cc__btn:focus-visible { outline: 2px solid #e8c996; outline-offset: 2px; }
/* Aceptar y Rechazar comparten peso visual: el RGPD exige que rechazar
   sea tan fácil y evidente como aceptar. */
.cc__btn--si,
.cc__btn--no {
  min-width: 108px;
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--bone);
}
.cc__btn--si:hover,
.cc__btn--no:hover { background: rgba(169, 131, 79, 0.22); border-color: var(--bronze); }
.cc__btn--mas {
  border: none;
  background: transparent;
  color: #e8c996;
  text-decoration: underline;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.cc__btn--mas:hover { color: var(--bone); }
.cc__detalle {
  flex: 1 1 100%;
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(217, 204, 184, 0.2);
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.78);
  max-height: 42vh;
  overflow-y: auto;
}
.cc__detalle p { margin: 0 0 0.7rem; }
.cc__detalle strong { color: var(--bone); }
.cc__detalle a { color: #e8c996; }
.cc__detalle dl { margin: 0 0 0.7rem; display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 0.3rem 1rem; }
.cc__detalle dt { color: var(--bone); font-weight: 600; }
.cc__detalle dd { margin: 0; }
/* Enlace discreto para volver a abrir el banner y cambiar la decisión */
.cc-preferencias {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 620px) {
  .cc__inner { padding: 0.85rem 18px 1rem; }
  .cc__actions { width: 100%; }
  /* "Más información" pasa a su propia línea. Compartiendo fila se quedaba
     con ~130px y, al ser los otros dos flex:1 1 0 con min-width:0, podían
     encogerse por debajo del ancho de su texto y "Rechazar" se salía de la caja. */
  .cc__btn--mas {
    flex: 1 0 100%;
    text-align: center;
    padding: 0.3rem 0 0.15rem;
  }
  .cc__btn--si,
  .cc__btn--no {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    white-space: nowrap;   /* la etiqueta nunca se parte ni desborda */
  }
  .cc__detalle dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .cc__detalle dd { margin-bottom: 0.5rem; }
}
