/* ══════════════════════════════════════════════════════
   SALINAS DEL SOL — styles.css
   Paleta: teal #2BBFB2 · oscuro #1A5055 · blanco #FFF
   Tipografía: Montserrat 400–900
══════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --accent:       #2BBFB2;
  --accent-dark:  #1E9B8F;
  --dark:         #1A5055;
  --dark-deep:    #0D3035;
  --white:        #FFFFFF;
  --off-white:    #F5F8F8;
  --text:         #1A2E30;
  --text-muted:   #5A7575;
  --border:       rgba(0, 0, 0, .09);
  --font:         'Montserrat', sans-serif;
  --max-w:        1200px;
  --radius:       4px;
  --ease:         0.25s ease;

  /* z-index scale */
  --z-base:   10;
  --z-nav:    30;
  --z-modal:  50;
  --z-float:  100;
}

/* ── PLACEHOLDERS (quitar cuando lleguen las fotos) ── */
.carousel-item  { background: #D4E8E6; }

/* ── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════════════════
   HERO — carousel multi-slide
══════════════════════════════════════════════════════ */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 30;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  padding: 0;
}
.hero-dot--active { background: var(--white); transform: scale(1.3); }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: var(--z-nav);
  background: var(--white);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { max-width: var(--max-w); margin: 0 auto; }
.logo-link    { display: inline-block; }
.logo         { height: 46px; width: auto; }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 76vh;
  min-height: 900px;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 24px 56px;
}

.hero-title {
  font-size: clamp(18px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.hero-badge {
  display: inline-block;
  background: #E9706A;
  color: var(--white);
  font-size: clamp(15px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 28px;
  margin: 10px 0 16px;
  border-radius: 50px;
}

.hero-subtitle {
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 400;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.hero-subtitle strong { font-weight: 700; color: var(--white); }

/* ══════════════════════════════════════════════════════
   BARRA DE CONVERSIÓN
══════════════════════════════════════════════════════ */
.conversion {
  background: var(--dark);
  padding: 40px 24px 44px;
  text-align: center;
}
.conversion-inner { max-width: 680px; margin: 0 auto; }

.conversion-intro {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.conversion-intro strong { color: var(--white); font-weight: 700; }

.conversion-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}

.badge-icon {
  height: 56px;
  width: auto;
}

.conv-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  padding: 9px 20px 9px 9px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.conv-badge-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conv-badge-icon svg {
  width: 17px;
  height: 17px;
  color: var(--white);
}

.precio-label {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.precio-valor {
  display: inline-block;
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1;
  background: #E9706A;
  border-radius: 50px;
  padding: 8px 36px;
}

/* ══════════════════════════════════════════════════════
   CARACTERÍSTICAS — 6 íconos 3×2
══════════════════════════════════════════════════════ */
.features {
  padding: 52px 0 0;
  background: var(--white);
}

.features::after {
  content: '';
  display: block;
  max-width: var(--max-w);
  height: 4px;
  background: #E9706A;
  margin: 48px auto 0;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.feature-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 24px 20px;
  gap: 14px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════
   ABOUT — Texto centrado + imagen full-width
══════════════════════════════════════════════════════ */
.about { background: var(--white); }

.about .container {
  padding-top: 64px;
  padding-bottom: 52px;
  text-align: center;
}

.about-text {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-text strong {
  font-weight: 800;
  font-style: normal;
  display: block;
  margin-top: 4px;
}

.about-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: var(--dark);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-image:hover img { transform: scale(1.04); }

/* ══════════════════════════════════════════════════════
   AMENIDADES — Carrusel
══════════════════════════════════════════════════════ */
.amenidades {
  padding: 16px 0 44px;
  background: var(--white);
}

.amenidades-titulo {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 0 24px;
}
.amenidades-titulo strong {
  font-weight: 800;
  color: var(--text);
}

/* ── Galería imagen grande + miniaturas ─────────────── */
.galeria-wrap {
  padding: 0 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.galeria-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark);
  cursor: pointer;
  margin-bottom: 10px;
}
.galeria-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.galeria-main:hover img { transform: scale(1.03); }

/* Swiper mobile galería */
.galeria-swiper { display: none; }
.galeria-swiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
/* Dots debajo de la imagen — padding-bottom crea el espacio dentro del overflow:hidden */
.galeria-swiper.swiper { padding-bottom: 32px !important; overflow: hidden; }
.galeria-swiper .swiper-pagination {
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.galeria-swiper .swiper-pagination-bullet {
  background: rgba(26,80,85,0.25);
  opacity: 1;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin: 0 !important;
  transition: all 0.3s ease;
}
.galeria-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}
/* Flechas */
.galeria-swiper .swiper-button-prev,
.galeria-swiper .swiper-button-next {
  width: 34px;
  height: 34px;
  background: rgba(26,80,85,0.65);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  top: calc(50% - 16px);
  transform: translateY(-50%);
  transition: background 0.2s ease;
}
.galeria-swiper .swiper-button-prev:hover,
.galeria-swiper .swiper-button-next:hover { background: var(--accent); }
.galeria-swiper .swiper-button-prev { left: 12px; }
.galeria-swiper .swiper-button-next { right: 12px; }
.galeria-swiper .swiper-button-prev::after,
.galeria-swiper .swiper-button-next::after {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}

.galeria-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 10;
  opacity: 0.7;
}
.galeria-progress.running {
  animation: galeria-fill 3.5s linear forwards;
}
@keyframes galeria-fill {
  from { width: 0; }
  to   { width: 100%; }
}

.galeria-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.45);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
  z-index: 2;
}
.galeria-expand svg { width: 18px; height: 18px; color: var(--white); }
.galeria-expand:hover { background: var(--accent); }

.galeria-thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.galeria-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--off-white);
  padding: 0;
  transition: border-color var(--ease), opacity var(--ease);
  opacity: .65;
}
.galeria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.galeria-thumb.active,
.galeria-thumb:hover {
  border-color: var(--accent);
  opacity: 1;
}

/* ── Lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.25s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
  z-index: 201;
}
.lightbox-close svg { width: 20px; height: 20px; color: var(--white); }
.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
  z-index: 201;
}
.lightbox-nav svg { width: 22px; height: 22px; color: var(--white); }
.lightbox-nav:hover { background: var(--accent); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════
   LIFESTYLE — Banner con imagen
══════════════════════════════════════════════════════ */
.lifestyle {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-deep);
}

.lifestyle-bg {
  position: absolute;
  inset: 0;
}
.lifestyle-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.lifestyle-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 27, 30, .45);
}

.lifestyle-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 60px;
}

.lifestyle-label {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lifestyle-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #E9706A;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   TIPOLOGÍAS
══════════════════════════════════════════════════════ */
.tipologias {
  padding: 64px 0 56px;
  background: var(--off-white);
}

.tipologias-intro {
  text-align: center;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  color: #606060;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 44px;
  line-height: 1.8;
}
.tipologias-intro strong {
  color: #606060;
  font-weight: 800;
}

.tipologias-viewer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 36px;
}

.tipo-nombre {
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.tipo-specs {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tipo-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.spec-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.tipo-area-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.area-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.tipo-area {
  font-size: 44px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tipologia-plano {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.tipologia-plano img {
  max-height: 300px;
  width: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.tipologias-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tipo-btn {
  width: 84px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--white);
  padding: 6px;
  opacity: .5;
  transition: border-color var(--ease), opacity var(--ease);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tipo-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tipo-btn.active,
.tipo-btn:hover {
  border-color: var(--accent);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO
══════════════════════════════════════════════════════ */
.contacto {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-deep);
}

.contacto-bg {
  position: absolute;
  inset: 0;
}
.contacto-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacto-overlay {
  display: none;
}

.contacto-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 24px;
  display: flex;
  justify-content: center;
}

.contacto-card {
  background: var(--dark);
  border-radius: 8px;
  padding: 56px 48px 48px;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.contacto-titulo {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.contacto-rango {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group { position: relative; }

.contacto-form input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
}
.contacto-form input::placeholder { color: rgba(255,255,255,.45); }
.contacto-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.11);
}
.contacto-form input[style*="border-color: rgb(233"] {
  background: rgba(233,112,106,.07);
}

.input-tel-wrap {
  display: flex;
  align-items: stretch;
}
.input-tel-wrap input {
  flex: 1;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}
.tel-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 11px 10px;
  flex-shrink: 0;
}
.tel-prefix img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 1px;
}
.tel-prefix span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}

.btn-enviar {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background var(--ease), transform var(--ease);
}
.btn-enviar:hover  { background: var(--accent-dark); transform: translateY(-1px); }
.btn-enviar:active { transform: translateY(0); }
.btn-enviar:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.contacto-web {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  letter-spacing: 0.06em;
  margin-top: 16px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark-deep);
  padding: 44px 0 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-info { flex: 1; min-width: 280px; }

.footer-informes {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.footer-tels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.footer-tels a {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  transition: color var(--ease);
}
.footer-tels a:hover { color: var(--accent); }
.footer-tels span   { color: rgba(255,255,255,.25); font-size: 12px; }

.footer-direccion {
  font-size: 11px;
  color: rgba(255,255,255,.38);
  line-height: 1.75;
  margin-bottom: 10px;
  max-width: 520px;
}

.footer-web {
  font-size: 12px;
  font-weight: 700;
  color: #FBE6CE;
  letter-spacing: 0.06em;
  transition: opacity var(--ease);
}
.footer-web:hover { opacity: .75; }

.footer-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  align-self: center;
  flex-shrink: 0;
}
.footer-logos img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .65;
}

.footer-legal {
  font-size: 10px;
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 16px 24px 12px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-smartinfo {
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}
.footer-smartinfo img {
  height: 13px;
  width: auto;
  opacity: .7;
  transition: opacity .2s;
}
.footer-smartinfo:hover img {
  opacity: 1;
}


/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET 768px
══════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .tipologias-viewer {
    grid-template-columns: 180px 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  /* Páginas legales */
  .legal-hero { padding: 60px 20px 44px; }
  .legal-hero h1 { font-size: 26px; }
  .legal-body { padding: 44px 20px 72px; }

  /* Gracias / 404 */
  .gracias, .pagina404 { padding: 60px 20px; }
  .pagina404-num { font-size: 80px; }

  /* Hero */
  .hero { height: 65vh; min-height: 400px; }

  /* Galería thumbs — 4 columnas en tablet */
  .galeria-thumbs { grid-template-columns: repeat(4, 1fr); }

  /* Features — 1 col para que ícono+texto no se corte */
  .features-grid { grid-template-columns: 1fr; }
  .feature-item  { padding: 16px 20px; }
  .feature-item span { font-size: 14px; }

  /* Carousel — 1 slide visible */
  .carousel-item { flex: 0 0 85%; }

  /* About image ratio */
  .about-image { aspect-ratio: 16 / 9; }

  /* Lifestyle */
  .lifestyle         { height: 220px; }
  .lifestyle-content { padding: 0 28px; }
  .lifestyle-label   { font-size: 16px; }
  .lifestyle-title   { font-size: 26px; }

  /* Conversion */
  .conversion-badges { gap: 12px; }
  .badge-icon        { height: 44px; }
  .precio-label      { font-size: 18px; }

  /* Tipologías */
  .tipologias-viewer {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tipologia-info  { order: 2; padding-top: 24px; text-align: center; }
  .tipo-specs      { align-items: center; }
  .tipo-area-label { justify-content: center; }
  .tipologia-plano { order: 1; }
  .tipo-nombre     { font-size: 24px; }
  .tipo-area       { font-size: 36px; }

  /* Galería — desktop oculta, swiper visible */
  .galeria-wrap  { display: none; }
  .galeria-swiper { display: block !important; margin: 0 16px 28px; }

  /* Contacto */
  .contacto-card   { padding: 36px 24px 32px; }
  .contacto-titulo { font-size: 22px; }

  /* Footer */
  .footer-inner     { flex-direction: column; align-items: center; text-align: center; }
  .footer-tels      { justify-content: center; }
  .footer-direccion { text-align: center; }
  .footer-logos     { justify-content: center; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE 480px
══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero { height: 60vh; }
  .logo { height: 36px; }

  .hero-content    { padding: 0 20px 36px; }
  .hero-title      { font-size: 18px; }
  .hero-subtitle   { font-size: 15px; }

  .precio-valor    { font-size: 28px; padding: 6px 24px; }
  .conversion-badges { flex-direction: column; align-items: center; }

  .contacto-card   { padding: 28px 16px 24px; max-width: 100%; }
  .contacto-titulo { font-size: 20px; }

  .tipologias-intro { font-size: 13px; }

  /* Galería thumbs — 4 columnas en mobile */
  .galeria-thumbs { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .galeria-main   { aspect-ratio: 4 / 3; }

  /* Lightbox nav en mobile */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

/* Formulario — Turnstile + TyC */
  .cf-turnstile iframe { max-width: 100%; }
  .tyc-label { font-size: 11px; }

  /* Páginas legales */
  .legal-hero { padding: 48px 16px 36px; }
  .legal-body { padding: 36px 16px 60px; }
  .legal-body h2 { font-size: 16px; }

  /* Formulario fila país+ciudad */
  .form-row-two { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   PÁGINAS LEGALES — TyC / Política de Privacidad
══════════════════════════════════════════════════════ */
.legal-page { font-family: var(--font); }

.legal-hero {
  position: relative;
  background: var(--dark);
  padding: 80px 24px 64px;
  text-align: center;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--dark-deep) 0%, var(--dark) 100%);
}
.legal-hero__overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232BBFB2' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.legal-hero__content {
  position: relative;
  z-index: 2;
}
.legal-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.legal-hero p {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  color: var(--text);
  line-height: 1.85;
}
.legal-update {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.legal-body h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 12px;
  letter-spacing: 0.01em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { margin-bottom: 14px; font-size: 15px; }
.legal-body ul {
  margin: 8px 0 14px 20px;
  font-size: 15px;
}
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body a:hover { color: var(--accent-dark); }

/* ══════════════════════════════════════════════════════
   GRACIAS / 404
══════════════════════════════════════════════════════ */
.gracias, .pagina404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  padding: 80px 24px;
}
.gracias-inner, .pagina404-inner {
  text-align: center;
  max-width: 520px;
}
.gracias-icon {
  width: 72px; height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.gracias-icon svg { width: 36px; height: 36px; color: #fff; }

.gracias-titulo, .pagina404-titulo {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.pagina404-num {
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.gracias-sub, .pagina404-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.gracias-sub strong { color: var(--dark); }
.gracias-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: background var(--ease);
}
.gracias-btn:hover { background: var(--accent-dark); }

.contacto-form-msg {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

/* Turnstile — centrado */
.cf-turnstile { display: flex; justify-content: center; margin: 4px 0; }

/* País y Ciudad en fila */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

/* TyC checkbox */
.form-tyc { margin: 2px 0; }
.tyc-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.tyc-label input[type="checkbox"] {
  width: 16px; height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.tyc-label a {
  color: var(--accent);
  text-decoration: underline;
  transition: opacity var(--ease);
}
.tyc-label a:hover { opacity: .8; }

/* intlTelInput — ajuste al tema oscuro del form */
.iti { width: 100%; }
.iti__flag-container { border-radius: var(--radius) 0 0 var(--radius); }
.iti--separate-dial-code .iti__selected-flag {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
}
.iti--separate-dial-code .iti__selected-flag:hover { background: rgba(255,255,255,.12); }
.iti--separate-dial-code input {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}
.iti input::placeholder { color: rgba(255,255,255,.45); }
.iti input { color: var(--white); }
.iti__country-list {
  background: var(--dark-deep) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 13px;
  z-index: 9999 !important;
  max-height: 220px;
}
.iti__country-name { color: rgba(255,255,255,.85) !important; }
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(255,255,255,.1) !important; }
.iti__dial-code { color: var(--accent) !important; }
.iti__divider { border-color: rgba(255,255,255,.1) !important; }
.iti__search-input {
  background: rgba(255,255,255,.07) !important;
  color: var(--white) !important;
  border-color: rgba(255,255,255,.15) !important;
}
.iti__search-input::placeholder { color: rgba(255,255,255,.4) !important; }

@media (max-width: 480px) {
  .form-row-two { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   ACCESIBILIDAD — Reduced motion
══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
