/* ═══════════════════════════════════════
   VARIABLES
═══════════════════════════════════════ */
:root {
  --verde:   #065c4a;
  --negro:   #111111;
  --gris:    #555555;
  --gris-cl: #999999;
  --fondo:   #f2f0ed;
  --blanco:  #ffffff;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', sans-serif;
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--negro); background: var(--blanco); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  padding: 14px 48px;
  box-shadow: 0 1px 16px rgba(0,0,0,0.07);
}
.nav-logo img {
  width: 200px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.35s;
}
.nav.scrolled .nav-logo img { filter: none; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero { position: relative; width: 100%; overflow: hidden; }

#video { padding: 56.25% 0 0 0; position: relative; z-index: 0; }
#video div { position: absolute; inset: 0; }
#video iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
  background: url('imagenes/FondoVideoOrd.webp') center/cover no-repeat;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1; pointer-events: none;
}

@media (max-width: 1366px) {
  body {
    zoom: 0.8;
  }
}
.hero-text {
  position: absolute;
  top: 70%; left: 0; right: 0;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
  padding: 0 50px;
  pointer-events: none;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 400;
  color: var(--blanco);
  letter-spacing: 0.16em;
  line-height: 1.3;
}

/* ═══════════════════════════════════════
   CANTABRIA
═══════════════════════════════════════ */
.cantabria {
  background: var(--fondo);
  text-align: center;
  padding: 96px 0 88px;
}
.cantabria h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--negro);
  margin-bottom: 16px;
  padding: 0 40px;
}
.cantabria > p {
  font-family: var(--sans);
  font-size: 20px; font-weight: 300;
  color: var(--gris);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.5;
  padding: 0 35px ;
}
.cantabria-mapa { width: 180px; margin: 0 auto 48px; }
.cantabria-mapa img { width: 100%; height: auto; }

/* Desktop: 3 fotos en fila */
.cantabria-slider-wrap {
  position: relative;
  padding: 0 80px;
}
.cantabria-fotos {
  display: flex;
  gap: 16px;
  width: 100%;
}
.cantabria-foto {
  position: relative;
  flex: 1;
  aspect-ratio: 4/3;
  overflow: hidden;
  min-width: 0;
}
.cantabria-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cantabria-foto:hover img { transform: scale(1.04); }
.cantabria-foto span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--blanco);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  padding: 40px 16px 20px;
  text-align: center;
}
/* Flechas solo visibles en móvil */
.cantabria-prev,
.cantabria-next {
  display: none;
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; z-index: 3; padding: 0;
}
.cantabria-prev img, .cantabria-next img { width: 36px; height: 36px; }
.cantabria-prev { left: 8px; }
.cantabria-next { right: 8px; }

/* ═══════════════════════════════════════
   VILLAS
═══════════════════════════════════════ */
.coleccion-wrap { padding: 96px 0 80px; }

.villas-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px 24px;
  padding: 0 100px;
}

.coleccion-texto-celda {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.coleccion-texto-celda h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--negro);
  margin-bottom: 16px;
  margin-top: 50%;
}
.coleccion-texto-celda p {
  font-family: var(--sans);
  font-size: 20px; font-weight: 300;
  color: var(--gris);
  line-height: 1.5;
}

.villa-card { display: flex; flex-direction: column; }

.villa-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #e0e0e0;
}
.villa-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.villa-slides img {
  flex-shrink: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.slider-prev, .slider-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; z-index: 2; padding: 0;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
}
.slider-prev img, .slider-next img { width: 28px; height: 28px; display: block; }
.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.villa-info { padding: 18px 0 0; }
.villa-info h3 {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--negro);
  margin-bottom: 5px;
}
.villa-lugar {
  font-family: var(--serif);
  font-size: 14px; font-weight: 400;
  color: var(--negro);
  margin-bottom: 5px;
}
.villa-specs {
  font-family: var(--sans);
  font-size: 13px; font-weight: 300;
  color: var(--gris);
  margin-bottom: 7px;
}
.villa-precio {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--negro);
  margin-bottom: 14px;
}
.btn-disponibilidad {
  display: inline-block;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em;
  padding: 11px 18px;
  border: none; outline: none;
  cursor: pointer;
}

/* ═══════════════════════════════════════
   PRENSA
═══════════════════════════════════════ */
.prensa {
  text-align: center;
  padding: 88px 60px 96px;
  background: var(--blanco);
}
.prensa h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--negro);
  margin-bottom: 56px;
}
.prensa-logos {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 30px 30px;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.prensa-logos img {
  height: 50px; width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.6);
  opacity: 0.8;
  margin: 0 auto;
  transition: opacity 0.2s, filter 0.2s;
}
.prensa-logos img:hover { opacity: 1; filter: none; }

/* ═══════════════════════════════════════
   SOBRE WISHOME
═══════════════════════════════════════ */
.sobre {
  position: relative;
  width: 100%; min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.sobre-foto-bg { position: absolute; inset: 0; }
.sobre-foto-bg picture,
.sobre-foto-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sobre-caja {
  position: relative; z-index: 1;
  background: #f2f0ed;
  margin: 64px auto 64px 140px;
  padding: 52px;
  max-width: 560px;
}
.sobre-caja h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--negro);
  margin-bottom: 28px;
  
}
.sobre-caja p {
  font-family: var(--sans);
  font-size: 18px; font-weight: 300;
  color: var(--negro);
  line-height: 1.8;
  margin-bottom: 18px;
}
.sobre-caja p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer { border-top: 1px solid #e0e0e0; padding: 100px 60px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo img { height: 60px; width: auto; }
.footer-copy { font-family: var(--sans); font-size: 18px; font-weight: 300; color: var(--gris-cl); }
.footer-copy a { color: var(--gris-cl); transition: color 0.2s; }
.footer-copy a:hover { color: var(--negro); }
.footer-social { display: flex; gap: 16px; align-items: center; }
.footer-social a { color: var(--negro); transition: color 0.2s; }
.footer-social a:hover { color: var(--verde); }

/* ═══════════════════════════════════════
   PASTILLA FLOTANTE
═══════════════════════════════════════ */
.pastilla {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex; align-items: center;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}
.pastilla-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  color: var(--blanco);
  font-family: var(--sans);
  font-size: 13px; letter-spacing: 0.02em;
  white-space: nowrap;
}
.pastilla-btn img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.pastilla-btn .pastilla-icon-svg { width: 20px; height: 20px; flex-shrink: 0; }
.pastilla-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.pastilla-email { display: flex; }
.pastilla-tel   { display: none; }
.pastilla-tel-desktop { display: flex; cursor: default; }

/* ═══════════════════════════════════════
   MODAL RESERVA
═══════════════════════════════════════ */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-content {
  background: var(--blanco);
  width: 100%; max-width: 560px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  max-height: 400px;
}
.modal-close-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
  background: var(--blanco);
}
.modal-content .close {
  position: static;
  background: var(--negro);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 20px; cursor: pointer;
  color: var(--blanco);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}
.modal-content .close:hover { background: var(--verde); }
.buscador { width: 100%; }
.buscador iframe { width: 100%; height: 520px; border: none; display: block; }
@media (max-width: 768px) { .buscador iframe { height: 480px; } }

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════ */
@media (max-width: 1200px) {
  .villas-grid-5 { grid-template-columns: repeat(3, 1fr); padding: 0 60px; }
  .cantabria-slider-wrap { padding: 0 48px; }
  .prensa-logos { grid-template-columns: repeat(4, auto); gap: 32px 40px; }
}

@media (max-width: 900px) {
  #video { padding: 177.78% 0 0 0; }
  #video iframe { background-image: url('imagenes/FondoVideoMovil.webp'); }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .villas-grid-5 { grid-template-columns: repeat(2, 1fr); padding: 0 40px; gap: 36px 20px; }
  .sobre { min-height: auto; flex-direction: column; }
  .sobre-foto-bg { position: relative; width: 100%; aspect-ratio: 4/3; }
  .sobre-caja { margin: 0; max-width: 100%; padding: 48px 32px; }
  .footer { padding: 20px 32px; }
}


@media (max-width: 1280px) {
  .coleccion-texto-celda h2 {
    margin-top: 0%;
    line-height: 1.5;
  }

  .cantabria > p {

    line-height: 1.5;
}

.sobre-caja p {
    line-height: 1.5;
   
}
}

/* ═══════════════════════════════════════
   RESPONSIVE — MÓVIL
═══════════════════════════════════════ */
@media (max-width: 768px) {


  .sobre-caja p {
    
    font-size: 20px;

}
  .hero-text {
    
    top: 80%;
    }

  .coleccion-texto-celda h2 {
    
    margin-top: 0px;
  
}


.slider-prev img, .slider-next img {
    width: 40px;
    height: 40px;
   
}

  .prensa-logos {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 30px 30px;
    justify-content: center;
    align-items: center;
    max-width: 250px;
    margin: 0 auto;
}
  /* Nav */
  .nav { padding: 14px 20px; justify-content: center; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-logo img { width: 200px; height: 60px; }

  /* Hero */
  .hero-text h1 { font-size: clamp(1.5rem, 4vw, 1.4rem); letter-spacing: 0.1em; }

  /* Cantabria: carrusel en móvil */
  .cantabria { padding: 64px 0 56px; }
  .cantabria-slider-wrap {
    padding: 0 20px;
    overflow: hidden;
  }
  .cantabria-fotos {
    gap: 0;
    transition: transform 0.4s ease;
  }
  .cantabria-foto {
    flex: 0 0 100%;
    min-width: 100%;
    aspect-ratio: 4/3;
  }
  .cantabria-prev,
  .cantabria-next { display: flex; }

  /* Villas */
  .coleccion-wrap { padding: 56px 0 64px; }
  .villas-grid-5 { grid-template-columns: 1fr; padding: 0 40px; gap: 48px; }
  .coleccion-texto-celda { grid-column: 1; }
  .villa-info h3 {     font-size: 1.5rem; letter-spacing: 0.04em; margin-bottom: 6px; }
  .villa-lugar { font-size: 1.5rem; margin-bottom: 6px; }
  .villa-specs { font-size: 1.2rem; margin-bottom: 8px; }
  .villa-precio { font-size: 1.2rem; margin-bottom: 16px; }
  .btn-disponibilidad { font-size: 16px; padding: 14px 24px; letter-spacing: 0.08em; width: 100%; text-align: center; }

  /* Prensa */
  .prensa { padding: 0px 20px 72px; }
  .prensa-logos { grid-template-columns: repeat(2, 1fr); gap: 20px 0px; }
  .prensa-logos img { height: 50px; }

  /* Sobre */
  .sobre-foto-bg { aspect-ratio: auto; height: auto; }
  .sobre-foto-bg picture,
  .sobre-foto-bg img { object-fit: contain; object-position: center center; background: var(--fondo); }
  .sobre-caja { padding: 40px 40px; }

  /* Footer */
  .footer { padding: 50px; }
  .footer-inner { flex-direction: column;  gap: 12px; padding-bottom: 90px; text-align: center; }

  /* Pastilla móvil — solo iconos */
  .pastilla-email { display: none; }
  .pastilla-tel-desktop { display: none; }
  .pastilla-tel   { display: flex; }
  .pastilla { bottom: 20px; left: 50%; right: auto; transform: translateX(-50%); width: auto; border-radius: 50px; }
  .pastilla-btn { padding: 18px 24px; gap: 0; }
  .pastilla-btn span { display: none; }
  .pastilla-btn img { width: 26px; height: 26px; }
  .pastilla-btn .pastilla-icon-svg { width: 26px; height: 26px; }
  .pastilla-divider { height: 20px; }


}
