/* ===================================================================
   Trasters Alfara — Landing de captación
   Paleta: fondo azul #46BBE3 · texto #1D1D1F · marino #1E5DA6 · amarillo #d8c566 · gris #DAE0E8
   Tipos: Anton (display) · Hanken Grotesk (texto) · IBM Plex Mono (etiquetas)
   =================================================================== */

:root {
  --kraft: #1E5DA6;       /* fondo global — azul marino oscuro */
  --ink: #1D1D1F;         /* texto/tinta principal — gris oscuro */
  --dark: #1E5DA6;        /* secciones oscuras — azul marino */
  --footer: #1E5DA6;      /* footer — azul marino */
  --cream: #FFFFFF;       /* texto blanco sobre marino */
  --cream-warm: #FFFFFF;  /* texto blanco sobre marino */
  --terra: #1E5DA6;       /* acento / textos destacados — azul marino */
  --amber: #d8c566;       /* amarillo — resaltes, líneas y botones */
  --panel: #DAE0E8;       /* gris terciario — paneles/tarjetas */
  --muted: #3C4A52;       /* secundarios sobre claro */
  --muted-2: #586A73;
  --muted-3: #788A93;
  --on-dark: #A8BEC8;     /* secundarios sobre oscuro */
  --on-dark-2: #7E97A2;
  --maxw: none;
  --pad: clamp(48px, 5vw, 112px);
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Anton', sans-serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background-color: var(--kraft);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
::selection { background: var(--terra); color: var(--cream); }
/* Foco visible por teclado en toda la web pública (accesibilidad) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}
section[id] { scroll-margin-top: 70px; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); width: 100%; }

/* Textura de ruido global */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tipos display utilitario */
.h-display { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 0.95; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.arrow { display: inline-block; transition: transform 0.3s ease; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ===================== HEADER ===================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--kraft); border-bottom: 2px solid var(--amber); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: baseline; gap: 11px; text-decoration: none; color: var(--cream); }
.brand-name { font-family: var(--display); font-size: 26px; letter-spacing: 0.03em; line-height: 1; }
.brand-sub { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.24em; color: var(--amber); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-toggle { display: none; }
.nav-link { text-decoration: none; color: var(--cream); font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s ease; }
.nav-link:hover { color: var(--amber); }
.nav-gallery-btn { display: none; background: none; border: none; cursor: pointer; padding: 0; text-align: left; }
.btn-reserve { text-decoration: none; background: var(--amber); color: #14406F; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 11px 20px; border-radius: 2px; white-space: nowrap; transition: background 0.22s ease, color 0.22s ease; }
.btn-reserve:hover { background: var(--terra); color: var(--cream); }

/* ===================== BOTONES ===================== */
.btn-terra { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; background: var(--amber); color: var(--dark); font-weight: 600; font-size: 18px; padding: 19px 34px; border-radius: 2px; border: none; cursor: pointer; font-family: inherit; transition: background 0.22s ease, color 0.22s ease; }
.btn-terra:hover { background: var(--terra); color: var(--cream); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: transparent; color: var(--cream); font-weight: 600; font-size: 18px; padding: 19px 32px; border-radius: 2px; border: 1px solid rgba(233,240,243,0.5); transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease; }
.btn-ghost:hover { background: var(--terra); color: var(--cream); border-color: var(--terra); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: clamp(580px, 82vh, 780px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-grad { position: absolute; inset: 0; pointer-events: none; }
.hero-grad-x { background: linear-gradient(90deg, rgba(28,18,11,0.86) 0%, rgba(28,18,11,0.62) 42%, rgba(28,18,11,0.28) 100%); }
.hero-grad-y { background: linear-gradient(180deg, rgba(28,18,11,0.30) 0%, rgba(28,18,11,0) 30%, rgba(28,18,11,0.55) 100%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 0; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 10.5vw, 150px); line-height: 0.92; letter-spacing: 0.005em; margin: 0 0 28px; color: var(--cream); text-transform: uppercase; max-width: 15ch; animation: ta-up 0.85s cubic-bezier(0.2,1,0.3,1) both; animation-delay: 0.05s; }
.hero-title .accent { color: var(--amber); }
.hero-sub { font-size: clamp(18px, 2.2vw, 25px); line-height: 1.5; color: #E8DDCB; margin: 0 0 38px; max-width: 600px; animation: ta-up 0.85s cubic-bezier(0.2,1,0.3,1) both; animation-delay: 0.12s; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; animation: ta-up 0.85s cubic-bezier(0.2,1,0.3,1) both; animation-delay: 0.18s; }

@keyframes ta-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ===================== PORTAL (puerta iluminada) ===================== */
.portal { position: absolute; z-index: 4; transform: translate(-50%, -50%); cursor: pointer; }
.portal-halo { position: absolute; left: 50%; top: 50%; width: 340%; height: 210%; transform: translate(-50%,-50%); background: radial-gradient(ellipse at center, rgba(255,214,150,0.62) 0%, rgba(255,194,120,0.18) 42%, rgba(255,194,120,0) 70%); pointer-events: none; animation: ta-halo 2.6s ease-in-out infinite; }
.portal-door { position: absolute; inset: 0; cursor: pointer; padding: 0; border: 1.5px solid rgba(255,232,185,0.7); border-radius: 3px 3px 2px 2px; background: radial-gradient(120% 95% at 50% 42%, rgba(255,228,172,0.6) 0%, rgba(255,198,120,0.3) 46%, rgba(255,184,104,0.1) 76%, rgba(255,184,104,0) 100%); display: flex; align-items: center; justify-content: center; animation: ta-portalpulse 2.6s ease-in-out infinite; transition: transform 0.3s cubic-bezier(0.2,1,0.3,1); }
.portal:hover .portal-door { transform: scale(1.06); }
.portal-door-arrow { font-family: var(--display); font-size: clamp(20px, 2.2vw, 32px); color: #FBEAD0; text-shadow: 0 1px 6px rgba(120,60,20,0.8); }
.portal-sign { position: absolute; bottom: 132%; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(360px, 72vw); white-space: normal; line-height: 1.3; background: var(--cream); color: var(--dark); border: 2px solid var(--dark); padding: 13px 20px; font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; cursor: pointer; box-shadow: 0 14px 34px rgba(0,0,0,0.5); animation: ta-bob 1.7s ease-in-out infinite; }
.portal-sign-tip { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 13px solid var(--cream); }

@keyframes ta-portalpulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(255,228,180,0.85), 0 0 34px 8px rgba(255,196,120,0.55), inset 0 0 22px rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 0 3px rgba(255,238,200,1), 0 0 66px 18px rgba(255,205,135,0.88), inset 0 0 30px rgba(255,255,255,0.66); }
}
@keyframes ta-halo { 0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } }
@keyframes ta-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }

/* ===================== SECCIONES (genérico) ===================== */
.section { padding-top: 84px; padding-bottom: 84px; }
.section-tight { padding-bottom: 84px; }
.section-dark { background: var(--dark); color: var(--cream); padding-top: 84px; padding-bottom: 84px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.section-head-simple { margin-bottom: 36px; }
.section-note { font-family: var(--mono); color: var(--on-dark); font-size: 12.5px; line-height: 1.7; max-width: 280px; margin: 0; }
.section-foot { margin: 24px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--cream); }
.section-foot a { color: var(--amber); font-weight: 600; text-decoration: none; }

/* ===================== ACCESO 24/7 ===================== */
.access-inner { border-top: 1px solid var(--amber); border-bottom: 1px solid var(--amber); padding: 72px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.access-big { font-family: var(--display); font-size: clamp(120px, 19vw, 240px); line-height: 0.78; color: var(--amber); letter-spacing: 0.01em; }
.access-copy { max-width: 780px; }
.access .eyebrow { display: block; margin-top: 10px; font-size: 14px; }
.access-title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.0; margin: 14px auto 20px; max-width: 18ch; }
.access-text { margin: 0 auto 26px; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.55; color: var(--cream); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); border: 1px solid rgba(255,255,255,0.35); padding: 9px 16px; border-radius: 2px; }

/* ===================== TABLA DE PRECIOS ===================== */
.table-scroll { overflow-x: auto; margin-top: 40px; }
.pricing-card { background: var(--panel); color: var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 34px); box-shadow: 0 16px 34px -18px rgba(14,39,48,0.4); margin-top: 24px; }
.pricing-card .section-note { color: var(--muted-2); }
.pricing-card .table-scroll { margin-top: 8px; }
.pricing-card .section-foot { color: var(--muted-2); margin-top: 18px; }
.pricing-card .section-foot a { color: var(--terra); }
.ptable { min-width: 860px; }
.ptable-head { display: grid; grid-template-columns: minmax(0,0.55fr) minmax(0,1.25fr) minmax(0,0.85fr) minmax(0,1.7fr) minmax(0,0.95fr) minmax(0,0.65fr); gap: 16px; padding: 14px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-3); border-bottom: 1px solid rgba(29,29,31,0.18); }
.ta-right { text-align: right; }
.prow { display: grid; grid-template-columns: minmax(0,0.55fr) minmax(0,1.25fr) minmax(0,0.85fr) minmax(0,1.7fr) minmax(0,0.95fr) minmax(0,0.65fr); gap: 16px; align-items: center; min-height: 78px; padding: 18px 16px; border-bottom: 1px solid rgba(29,29,31,0.16); color: var(--ink); }
.prow-popular { background: rgba(47,85,106,0.05); }
.prow-last { border-bottom: none; }
.prow .ref { font-family: var(--mono); font-size: 13px; color: var(--terra); }
.prow .size { font-family: var(--display); font-size: 26px; display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.prow .dims { font-family: var(--mono); font-size: 13px; color: var(--muted-2); white-space: nowrap; }
.prow .ideal { font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.prow .avail { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.prow .avail-last { color: var(--terra); font-weight: 600; }
.prow .avail-notify {
  display: block; width: -moz-fit-content; width: fit-content; margin-top: 6px; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #14406F; background: var(--amber); border: none; border-radius: 999px; padding: 5px 11px;
  white-space: nowrap; transition: filter 0.18s ease, transform 0.05s ease;
}
.prow .avail-notify:hover { filter: brightness(1.06); }
.prow .avail-notify:active { transform: translateY(1px); }
.prow .price { text-align: right; font-family: var(--display); font-size: 28px; }
.price-note { text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin: 14px 16px 0; }
.tag-popular { font-family: var(--mono); font-size: 10px; color: var(--terra); vertical-align: middle; }

/* ===================== GALERÍA MOSAICO ===================== */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.gallery-col { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.photo { position: relative; overflow: hidden; border: 1px solid var(--amber); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2,1,0.3,1); }
.photo:hover img { transform: scale(1.04); }
.photo-main { aspect-ratio: 3/2; }
.photo-tag { position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(29,29,31,0.6); padding: 5px 10px; backdrop-filter: blur(4px); }
/* Fotos clicables -> abren galería */
.photo[data-open-gallery] { cursor: pointer; }
.photo-zoom { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 16px; color: #fff; background: rgba(29,29,31,0.55); border-radius: 50%; backdrop-filter: blur(4px); opacity: 0; transform: scale(0.9); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.photo[data-open-gallery]:hover .photo-zoom, .photo[data-open-gallery]:focus-visible .photo-zoom { opacity: 1; transform: scale(1); }
.photo[data-open-gallery]:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Cabecera de sección con botón de galería */
.section-head-gallery { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 24px; margin-bottom: 36px; }
.btn-gallery { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--dark); background: var(--amber); border: none; border-radius: 2px; padding: 13px 20px; cursor: pointer; white-space: nowrap; transition: background 0.22s ease, color 0.22s ease; }
.btn-gallery:hover { background: var(--cream); color: var(--dark); }
.btn-gallery .arrow { display: inline-block; transition: transform 0.3s ease; }
.btn-gallery:hover .arrow { transform: translateX(4px); }

/* ===================== SEGURIDAD ===================== */
.security-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.security-photos .photo { aspect-ratio: 4/5; }
.guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; background: var(--panel); color: var(--ink); border-radius: 20px; padding: 4px 40px; box-shadow: 0 16px 34px -18px rgba(14,39,48,0.4); }
.guarantee { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(29,29,31,0.14); }
.guarantees .guarantee:nth-child(1), .guarantees .guarantee:nth-child(2) { border-top: none; }
.g-title { color: var(--ink); }
.g-num { font-family: var(--mono); font-size: 13px; color: var(--terra); padding-top: 3px; }
.g-title { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 0 0 7px; text-transform: uppercase; letter-spacing: 0.02em; }
.g-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ===================== PROCESO ===================== */
#instalaciones.section-tight { padding-bottom: 28px; }
#proceso.section { padding-top: 0; }
.process-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; align-items: stretch; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 34px -18px rgba(14,39,48,0.4); margin-top: 0; }
.process-title { margin: 0 0 32px; }
.steps-card { background: var(--panel); color: var(--ink); border-radius: 0; padding: 24px 32px; height: 100%; }
.steps-card .process-title { margin: 6px 0 10px; }
.step { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid rgba(29,29,31,0.18); }
.steps-card .step:first-child { border-top: none; }
.step-last { border-bottom: 1px solid rgba(29,29,31,0.18); }
.step-num { font-family: var(--display); font-size: 28px; color: var(--terra); line-height: 1; }
.step-title { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0 0 5px; text-transform: uppercase; letter-spacing: 0.02em; }
.step-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.process-photo { height: 100%; min-height: 340px; border: none; }
.process-photo img { object-position: center center; }

/* ===================== CONDICIONES ===================== */
.terms-section { margin-top: -52px; }
.terms { background: var(--panel); color: var(--ink); border-radius: 20px; padding: clamp(34px, 5vw, 60px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 52px; align-items: center; box-shadow: 0 16px 34px -18px rgba(14,39,48,0.4); }
.terms-title { font-size: clamp(30px, 4vw, 48px); }
.term { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(29,29,31,0.14); }
.terms-list .term:first-child { border-top: none; }
.terms-list .term:last-child { border-bottom: none; }
.term-num { font-family: var(--mono); font-size: 12.5px; color: var(--terra); padding-top: 3px; }
.term p { margin: 0; font-size: 16px; line-height: 1.5; }
.term strong { font-weight: 700; }

/* ===================== RESERVA ===================== */
.reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 56px; align-items: stretch; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 34px -18px rgba(14,39,48,0.4); }
.contact-card { color: #fff; border-radius: 0; padding: clamp(24px, 3vw, 38px); background-image: linear-gradient(rgba(10,25,45,0.55), rgba(10,25,45,0.62)), url('assets/fotos/fachada.jpg'); background-size: cover; background-position: 76% 42%; }
.reserve-title { font-size: clamp(36px, 5.5vw, 68px); line-height: 0.93; margin: 0 0 22px; }
.reserve-text { color: rgba(255,255,255,0.85); font-size: 16.5px; line-height: 1.6; margin: 0 0 36px; max-width: 420px; }
.contact-list { border-top: 1px solid rgba(255,255,255,0.22); }
.contact-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.22); text-decoration: none; color: #fff; }
.contact-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.contact-value { font-family: var(--display); font-size: 26px; letter-spacing: 0.02em; }
.contact-value-sm { font-size: 19px; letter-spacing: 0.01em; }
.reserve-map { position: relative; min-height: 340px; height: 100%; overflow: hidden; }
.reserve-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reserve-photo { grid-column: 1 / -1; border: none; aspect-ratio: 16/6; min-height: 220px; }

/* Formulario */
.form-card { background: var(--panel); color: var(--ink); border-radius: 18px; padding: clamp(28px, 4vw, 48px); max-width: none; width: 100%; margin-top: clamp(24px, 3.5vw, 40px); box-shadow: 0 24px 48px -16px rgba(14,39,48,0.55); }
.form-title { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.form-note { margin: 0 0 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted-2); }
#lead-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 28px; align-items: end; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 8px; }
.field input, .field select { width: 100%; padding: 11px 0; border: none; border-bottom: 1.5px solid rgba(29,29,31,0.3); background: transparent; font-size: 16px; font-family: inherit; color: var(--ink); outline: none; transition: border-color 0.2s ease; }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 44px; line-height: 1.2; padding-right: 26px; cursor: pointer; border-radius: 0; 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 1.5L6 6.5L11 1.5' stroke='%23B14A28' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.field select::-ms-expand { display: none; }
.field input::placeholder { color: rgba(29,29,31,0.45); }
.field input:focus, .field select:focus { border-color: var(--terra); }
.form-submit { grid-column: 1 / -1; justify-self: start; margin-top: 8px; font-size: 16px; padding: 16px 32px; }
.form-status { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
.form-status.is-ok { color: #1a7a3d; }
.form-status.is-err { color: #b3261e; }
@media (max-width: 700px) { #lead-form { grid-template-columns: 1fr; } }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--footer); color: var(--on-dark-2); }
.footer-name { color: var(--cream); font-size: 22px; }
.footer-sub { color: var(--amber); font-size: 10px; }

/* Cuerpo del footer */
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr; gap: 40px; padding-top: 22px; padding-bottom: 22px; padding-left: calc(var(--pad) + 16px); padding-right: calc(var(--pad) + 16px); }
.footer-brand-col .brand { margin-bottom: 18px; }
.footer-claim { font-size: 15px; line-height: 1.6; color: var(--on-dark); max-width: 380px; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 4px; }
.footer-col a, .footer-contact a, .footer-addr { color: var(--cream); text-decoration: none; font-size: 15px; }
.footer-col a:hover, .footer-contact a:hover { color: var(--amber); }
.footer-addr { color: var(--on-dark); line-height: 1.6; }

/* Barra legal */
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-legal-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; padding-left: calc(var(--pad) + 16px); padding-right: calc(var(--pad) + 16px); flex-wrap: wrap; }
.footer-copy { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-2); }
.footer-legal-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-legal-links a, .footer-cookie-btn { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-2); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; }
.footer-legal-links a:hover, .footer-cookie-btn:hover { color: var(--amber); }

/* ===================== COOKIES (RGPD) ===================== */
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #11203a; color: #e9eef4; box-shadow: 0 -10px 40px rgba(0,0,0,0.35); border-top: 2px solid var(--amber); }
.cc-banner[hidden] { display: none; }
.cc-banner-inner { display: flex; align-items: center; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.cc-banner-text { flex: 1 1 360px; }
.cc-banner-text strong { display: block; font-size: 15px; margin-bottom: 4px; color: #fff; }
.cc-banner-text p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #b9c4d4; }
.cc-banner-text a { color: var(--amber); }
.cc-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.cc-btn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 18px; border-radius: 3px; cursor: pointer; border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.cc-btn-primary { background: var(--amber); color: #1a1a1a; border-color: var(--amber); }
.cc-btn-primary:hover { background: #cbb74f; }
.cc-btn-ghost { background: transparent; color: #e9eef4; border-color: rgba(255,255,255,0.3); }
.cc-btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.cc-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cc-modal[hidden] { display: none; }
.cc-modal-backdrop { position: absolute; inset: 0; background: rgba(8,15,28,0.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cc-modal-panel { position: relative; background: #fff; color: var(--ink); width: min(560px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 14px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cc-modal-head h2 { font-family: var(--display); font-size: 26px; margin: 0; }
.cc-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted-2); line-height: 1; padding: 4px; }
.cc-modal-intro { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; }
.cc-cat { border-top: 1px solid rgba(29,29,31,0.12); padding: 18px 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cc-cat-name { font-weight: 600; font-size: 15.5px; }
.cc-cat-always { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); }
.cc-cat-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }
.cc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.cc-modal-actions .cc-btn-ghost { color: var(--ink); border-color: rgba(29,29,31,0.25); }
.cc-modal-actions .cc-btn-ghost:hover { border-color: var(--terra); color: var(--terra); }
.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-slider { position: absolute; inset: 0; background: #c7cdd6; border-radius: 26px; transition: background 0.2s; }
.cc-slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.cc-switch input:checked + .cc-slider { background: var(--terra); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: var(--panel); color: var(--ink); }
.map-consent p { margin: 0; font-size: 14px; max-width: 280px; line-height: 1.5; color: var(--muted); }

/* ===================== PÁGINAS LEGALES ===================== */
.legal-page { background: #fff; color: var(--ink); }
.legal-header { background: var(--kraft); border-bottom: 2px solid var(--amber); position: sticky; top: 0; z-index: 40; }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--pad); }
.legal-back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.legal-back:hover { color: var(--amber); }
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin: 0 0 10px; }
.legal h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 68px); line-height: 0.95; margin: 0 0 12px; }
.legal-updated { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin: 0 0 40px; }
.legal h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); margin: 40px 0 14px; font-weight: 400; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: #33414b; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--terra); }
.legal .ph { background: #fff4d6; border-bottom: 1px dashed #d8b53a; padding: 0 4px; font-style: normal; border-radius: 2px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.legal-table th, .legal-table td { border: 1px solid rgba(29,29,31,0.16); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.45; }
.legal-table th { background: var(--panel); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-table-wrap { overflow-x: auto; }
.legal-footer { background: var(--footer); color: var(--on-dark-2); }
.legal-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px var(--pad); flex-wrap: wrap; }
.legal-footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-footer a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-2); text-decoration: none; }
.legal-footer a:hover { color: var(--amber); }
.legal-footer span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ===================== GALERÍA LIGHTBOX ===================== */
.gallery { position: fixed; inset: 0; z-index: 250; background: rgba(14,39,48,0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; animation: ta-galopen 0.4s cubic-bezier(0.2,1,0.3,1) both; }
.gallery[hidden] { display: none; }
@keyframes ta-galopen { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid rgba(233,240,243,0.14); }
.gallery-title-wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gallery-title { font-family: var(--display); font-size: 20px; color: var(--cream); text-transform: uppercase; letter-spacing: 0.03em; }
.gallery-counter { font-family: var(--mono); font-size: 12px; color: var(--on-dark); }
.gnav { border-radius: 2px; border: 1px solid rgba(233,240,243,0.3); background: transparent; color: var(--cream); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.gnav:hover { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.gallery-close { flex: 0 0 auto; width: 40px; height: 40px; font-size: 17px; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 6px; }
.gtab { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 15px; border-radius: 2px; cursor: pointer; transition: all 0.2s ease; background: transparent; color: var(--on-dark); border: 1px solid rgba(233,240,243,0.3); }
.gtab.active { background: var(--terra); color: var(--cream); border-color: var(--terra); }
.gallery-stage-wrap { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px 22px; }
.gallery-prev, .gallery-next { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(23,53,66,0.6); font-size: 24px; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-stage-inner { position: relative; width: 100%; height: 100%; max-width: 1080px; display: flex; align-items: center; justify-content: center; }
.gallery-stage { position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat; background-position: center; }
.gallery-caption { position: absolute; left: 0; bottom: 18px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 22px; max-width: min(560px, 80%); background: rgba(14,39,48,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 0 4px 4px 0; border-left: 3px solid var(--amber); }
.gallery-cat { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark); background: var(--amber); padding: 4px 9px; border-radius: 2px; }
.gallery-cap { font-family: var(--sans); font-size: 15.5px; font-weight: 500; color: var(--cream); }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 22px 18px; border-top: 1px solid rgba(233,240,243,0.12); }
.gthumb { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border-radius: 3px; cursor: pointer; background-size: cover; background-position: center; border: 2px solid rgba(233,240,243,0.15); opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease; }
.gthumb.active { border-color: var(--amber); opacity: 1; }

/* ===================== SELECTOR DE IDIOMA ===================== */
.lang-switch { display: inline-flex; border: 1px solid rgba(29,29,31,0.3); border-radius: 2px; overflow: hidden; }
.lang-btn { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: transparent; border: none; border-right: 1px solid rgba(29,29,31,0.18); padding: 9px 11px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.lang-btn:last-child { border-right: none; }
.lang-btn:hover { color: var(--amber); }
.lang-btn.active { background: var(--ink); color: var(--cream); }

/* ===================== AJUSTES GLOBALES ===================== */
/* Switch de idioma: contraste correcto sobre el header marino */
.lang-switch { border-color: rgba(255,255,255,0.35); }
.lang-btn { color: rgba(255,255,255,0.85); border-right-color: rgba(255,255,255,0.22); }
.lang-btn:hover { color: var(--amber); }
.lang-btn.active { background: var(--amber); color: var(--dark); }
/* El ancla #formulario no es <section>: scroll-margin propio para que el header no lo tape */
#formulario { scroll-margin-top: 84px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav { gap: 14px; }
  .header-inner { gap: 14px; }

  /* Menú hamburguesa */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px;
    background: transparent; border: 1px solid rgba(255,255,255,0.32); border-radius: 4px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--cream); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--kraft); border-bottom: 2px solid var(--amber);
    padding: 0 var(--pad); max-height: 0; overflow: hidden;
    transition: max-height .3s ease; box-shadow: 0 18px 30px -16px rgba(0,0,0,0.5);
  }
  .nav-links[data-open="true"] { max-height: 380px; }
  .nav-link { display: block; padding: 17px 2px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav-link:last-child { border-bottom: none; }
  .nav-gallery-btn { display: block; color: var(--amber); }

  /* Selector de idioma dentro del menú desplegable */
  .nav-links .lang-switch { align-self: flex-start; margin: 16px 2px 18px; }

  /* El "portal" del hero apunta a una puerta que el recorte móvil no muestra:
     se oculta y la galería se abre con el botón/fotos de Instalaciones */
  .portal { display: none !important; }

  /* Apilado de secciones */
  .guarantees { grid-template-columns: 1fr; gap: 0; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .reserve-grid { grid-template-columns: 1fr; gap: 0; }
  .terms { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .security-photos { grid-template-columns: repeat(2, 1fr); }
  .portal-sign { font-size: 13px; padding: 11px 15px; max-width: 56vw; }
}

/* ===================== MÓVIL / TABLET PEQUEÑA (<=768) ===================== */
@media (max-width: 768px) {
  /* Espaciado de secciones */
  .section, .section-dark { padding-top: 56px; padding-bottom: 56px; }
  .section-tight { padding-bottom: 56px; }
  .section-head-simple { margin-bottom: 24px; }
  section[id] { scroll-margin-top: 56px; }
  #formulario { scroll-margin-top: 56px; }

  /* Header compacto */
  .header-inner { padding-top: 11px; padding-bottom: 11px; }
  .btn-reserve { padding: 11px 14px; font-size: 11px; }
  .lang-btn { padding: 12px 12px; font-size: 12px; }

  /* Hero */
  .hero-title { font-size: clamp(46px, 13vw, 64px); margin-bottom: 18px; }
  .hero-sub { font-size: 17px; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-terra, .btn-ghost { width: 100%; justify-content: center; font-size: 16px; padding: 16px 24px; }

  /* Acceso 24/7 */
  .access-inner { padding: 56px 0; gap: 4px; }
  .access-big { font-size: clamp(86px, 26vw, 120px); line-height: 0.82; }

  /* Tabla de precios -> tarjetas (sin scroll horizontal) */
  .pricing-card { padding: 22px 16px; margin-top: 16px; }
  .table-scroll { overflow-x: visible; margin-top: 8px; }
  .ptable { min-width: 0; }
  .ptable-head { display: none; }
  .prow {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "size price" "dims dims" "ideal ideal" "avail avail";
    gap: 4px 14px; align-items: baseline; min-height: 0; padding: 20px 4px;
  }
  .prow .ref { display: none; }
  .prow .size  { grid-area: size; font-size: 30px; }
  .prow .price { grid-area: price; justify-self: end; font-size: 30px; }
  .prow .dims  { grid-area: dims; }
  .prow .ideal { grid-area: ideal; font-size: 15px; }
  .prow .avail { grid-area: avail; }
  .prow-popular { background: rgba(30,93,166,0.07); border-radius: 12px; padding-left: 14px; padding-right: 14px; }
  .prow-last { border-bottom: none; }
  .price-note { text-align: left; margin: 14px 4px 0; }

  /* Galería */
  .gallery-grid { gap: 12px; }
  .gallery-col { grid-template-rows: none; gap: 12px; }
  .gallery-col .photo, .photo-main { aspect-ratio: 3/2; }
  .gallery-caption { display: none; }

  /* Seguridad */
  .guarantees { padding: 4px 22px; }
  .guarantee { padding: 22px 0; gap: 16px; }
  .g-title { font-size: 19px; }
  .security-photos { gap: 12px; margin-bottom: 12px; }

  /* Proceso (tarjeta unificada apilada) */
  .steps-card { padding: 22px 22px 8px; }
  .process-photo { min-height: 240px; }

  /* Condiciones */
  .terms-section { margin-top: 0; }
  .terms { padding: 30px 22px; gap: 22px; }
  .terms-title { font-size: clamp(28px, 8vw, 40px); }
  .term { padding: 16px 0; gap: 14px; }
  .term p { font-size: 15.5px; }

  /* Reserva (contacto + mapa apilados) */
  .contact-card { background-position: 60% 42%; padding: 28px 22px 30px; }
  .reserve-title { font-size: clamp(34px, 9vw, 48px); margin-bottom: 16px; }
  .reserve-text { font-size: 16px; margin-bottom: 26px; }
  .contact-value-sm { font-size: 17px; }
  .contact-row { padding: 16px 0; }
  .reserve-map { min-height: 240px; }

  /* Formulario */
  #lead-form { grid-template-columns: 1fr; gap: 18px; }
  .field label { font-size: 11px; }
  .form-title { font-size: 24px; }
  .form-submit { width: 100%; justify-self: stretch; justify-content: center; padding: 16px 24px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 20px; padding-bottom: 20px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-legal-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Cookies */
  .cc-banner-inner { gap: 14px; padding: 16px 0; }
  .cc-banner-actions { width: 100%; }
  .cc-banner-actions .cc-btn { flex: 1 1 auto; }
}

/* ===================== MÓVIL (<=540) ===================== */
@media (max-width: 540px) {
  .access-inner { padding: 48px 0; }
  .security-photos { grid-template-columns: 1fr 1fr; }
  .hero-content { padding-bottom: 40px; }
  .portal-sign { font-size: 11px; padding: 9px 12px; max-width: 60vw; bottom: 128%; }
}

/* ===================== MÓVIL ESTRECHO (<=420) ===================== */
@media (max-width: 420px) {
  .brand-name { font-size: 22px; }
  .lang-btn { padding: 11px 9px; letter-spacing: 0.06em; }
  .btn-reserve { padding: 11px 12px; letter-spacing: 0.06em; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .prow .size, .prow .price { font-size: 27px; }
}

/* ===================== MÓVIL MUY ESTRECHO (<=360) ===================== */
/* Evita que "TRASTERS ALFARA" + Reservar + menú se salgan a 320-360px */
@media (max-width: 360px) {
  .header-inner { gap: 10px; }
  .nav { gap: 10px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 20px; }
  .btn-reserve { padding: 10px 10px; }
}

/* Páginas legales: padding lateral cómodo y consistente (header, contenido y footer alineados) */
@media (max-width: 900px) {
  .legal-page { --pad: 28px; }
}
