/* =========================================================
   noebyb — Estilos estilo Airbnb
   Paleta inspirada en Airbnb: rojo #FF385C, blanco y grises
   ========================================================= */

:root {
  --primary: #ff385c;
  --primary-dark: #e31c5f;
  --primary-light: #fff1f4;
  --ink: #222222;
  --text: #4a4a4a;
  --muted: #717171;
  --line: #e7e7e7;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(227, 28, 95, 0.3);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(227, 28, 95, 0.35);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* Menú hamburguesa (móvil) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 680px;
  padding: 40px 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: #ff5a75;
}

.hero-sub {
  margin: 18px 0 28px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Secciones ---------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 36px;
}

.lead {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* ---------- Propiedad ---------- */
.propiedad-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 8px 0 24px;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: block;
  gap: 10px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

/* Tarjeta de reserva */
.book-card {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}

.book-price strong {
  font-size: 1.7rem;
  font-weight: 700;
}

.book-price span {
  color: var(--muted);
}

.book-rating {
  margin: 4px 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.book-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.book-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.book-card input,
.book-card select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-card input:focus,
.book-card select:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.12);
}

.book-card .btn {
  margin-top: 6px;
}

.book-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item--wide {
  grid-row: span 2;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Servicios ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.amenity {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amenity:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.amenity-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

.amenity h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.amenity p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 24px 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-light);
  font-size: 1.2rem;
}

.contact-list strong {
  display: block;
  font-size: 0.92rem;
}

.contact-list p {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list a:hover {
  color: var(--primary-dark);
}

/* Formulario */
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.4em;
}

.form-note.success { color: #1e9e4c; }
.form-note.error { color: var(--primary-dark); }

.contact-form .errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.78rem;
  color: var(--primary-dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #ddd;
  padding: 44px 0;
  text-align: center;
}

.logo--footer .logo-text {
  color: #fff;
}

.footer p {
  font-size: 0.88rem;
  color: #aaa;
  margin: 8px 0;
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.8rem !important;
  color: #777 !important;
}

/* ---------- Enlaces legales (footer) ---------- */
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: #bbb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- Páginas legales ---------- */
.legal-wrap {
  max-width: 760px;
}

.legal-wrap h1 {
  margin-bottom: 4px;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  margin: 28px 0 8px;
}

.legal-wrap p {
  color: var(--text);
  margin-bottom: 12px;
}

.legal-vuelta {
  margin-bottom: 20px;
}

.legal-vuelta a {
  color: var(--primary-dark);
  font-weight: 600;
}

.legal-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
}

.legal-tabla th,
.legal-tabla td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.legal-tabla th {
  background: var(--bg-alt);
}

.legal-tabla code {
  font-size: 0.85rem;
}

/* ---------- Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: var(--whatsapp-dark);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ddd;
  font-size: 0.95rem;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .propiedad-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    position: static;
  }

  .amenities {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 60px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 20px 6%;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 4px;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item--wide {
    grid-row: auto;
  }

  .amenities {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row,
  .book-dates {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .amenities {
    grid-template-columns: 1fr;
  }
}
