/* Vistamarina Vacation House — estilos */
:root {
  --teal: #4a9dab;
  --teal-dark: #2f7a87;
  --teal-soft: #e3f1f3;
  --navy: #12313d;
  --ink: #1f2b31;
  --muted: #5f6e74;
  --sand: #f7f3ec;
  --sand-2: #ede6d8;
  --line: #e2ddd2;
  --wood: #b8783f;
  --white: #ffffff;
  --ok: #2e9e6b;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 49, 61, .10);
  --shadow-lg: 0 24px 60px rgba(18, 49, 61, .18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 16px; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--sand); }
.kicker { display: inline-block; color: var(--teal-dark); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(30px, 4.2vw, 46px); max-width: 16ch; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 58ch; margin-top: 14px; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(74, 157, 171, .35); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: rgba(255, 255, 255, .92); color: var(--navy); }
.btn-light:hover { background: #fff; }
.btn-wa { background: var(--wa); color: #073b1d; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: #1fc45b; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(18, 49, 61, .06); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--teal); transition: right .2s; }
.nav-links a:hover::after { right: 0; }
.lang { display: flex; gap: 4px; background: var(--sand); border-radius: 999px; padding: 4px; }
.lang button { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.lang button.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.menu-btn { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu a { display: block; padding: 14px 0; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: block; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 49, 61, .70) 0%, rgba(18, 49, 61, .42) 50%, rgba(18, 49, 61, .10) 100%), linear-gradient(180deg, rgba(18, 49, 61, .25) 0%, rgba(18, 49, 61, 0) 35%, rgba(18, 49, 61, .80) 100%); }
.hero-inner { padding: 120px 0 56px; }
.hero .kicker { color: #cbe9ee; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); max-width: 14ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.hero p { font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; margin: 22px 0 30px; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; }
.chip svg { width: 16px; height: 16px; }

/* Casas */
.houses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.house { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.house-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.house-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.house:hover .house-media img { transform: scale(1.04); }
.house-tag { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .92); color: var(--navy); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.house-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.house h3 { font-size: 30px; }
.kpis { display: flex; gap: 22px; }
.kpi { display: flex; flex-direction: column; }
.kpi b { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--navy); line-height: 1; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.house p { color: var(--muted); margin: 0; }
.house-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

.together { margin-top: 28px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.together h3 { font-size: 26px; }
.together p { color: rgba(255, 255, 255, .82); margin: 6px 0 0; }
.together .btn { margin-left: auto; }

/* Galerías */
.gallery-block { margin-top: clamp(40px, 6vw, 72px); }
.gallery-block h3 { font-size: 24px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; }
.gallery-block h3 small { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.gallery a { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--sand-2); }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(6) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.gallery-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; font-size: 14px; }

/* Comodidades */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.amenity { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; }
.amenity i { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; }
.amenity svg { width: 22px; height: 22px; }

/* Barra Grande */
.bg-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.bg-intro p { font-size: 17px; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 10px; }
.mosaic a { border-radius: 14px; overflow: hidden; display: block; }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover img { transform: scale(1.05); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sand); color: var(--wood); margin-bottom: 16px; }
.feature svg { width: 24px; height: 24px; }
.feature h4 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Cómo llegar */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: r; }
.route { padding: 26px; border-radius: var(--radius); background: var(--sand); position: relative; }
.route::before { counter-increment: r; content: "0" counter(r); font-family: var(--font-display); font-size: 40px; color: var(--teal); opacity: .6; line-height: 1; display: block; margin-bottom: 12px; }
.route h4 { font-size: 22px; margin-bottom: 8px; }
.route p { color: var(--muted); margin: 0; font-size: 15px; }
.help { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); }

/* Reservas */
.booking { display: grid; grid-template-columns: 1.25fr .9fr; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.seg { display: flex; gap: 6px; background: var(--sand); padding: 5px; border-radius: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 8px; border-radius: 9px; font-weight: 700; color: var(--muted); font-size: 14px; }
.seg button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { border: 1px solid var(--line); background: #fff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--navy); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-nav svg { width: 18px; height: 18px; }
.cal-hint { font-size: 14px; color: var(--teal-dark); font-weight: 600; min-height: 22px; margin: 4px 0 10px; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.month h4 { font-family: var(--font-body); font-size: 15px; font-weight: 800; text-align: center; margin-bottom: 10px; color: var(--navy); }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.day { border: 0; background: transparent; aspect-ratio: 1; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink); position: relative; }
.day:hover:not(:disabled) { background: var(--teal-soft); }
.day:disabled { color: #c3bdb2; cursor: default; }
.day.blocked { color: #b9b1a4; background: repeating-linear-gradient(135deg, #f1ece3 0 4px, #e6dfd2 4px 8px); text-decoration: line-through; }
.day.in-range { background: var(--teal-soft); border-radius: 0; }
.day.start, .day.end { background: var(--teal); color: #fff; }
.day.start { border-radius: 10px 0 0 10px; }
.day.end { border-radius: 0 10px 10px 0; }
.day.start.end { border-radius: 10px; }
.day.today::after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); }
.legend .l-free i { background: #fff; }
.legend .l-busy i { background: repeating-linear-gradient(135deg, #f1ece3 0 3px, #e6dfd2 3px 6px); }
.legend .l-sel i { background: var(--teal); border-color: var(--teal); }
.link-btn { border: 0; background: transparent; color: var(--teal-dark); font-weight: 700; padding: 0; text-decoration: underline; font-size: 14px; }

.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--sand); }
.date-box small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.date-box b { font-size: 16px; color: var(--navy); }
.date-box.empty b { color: #b9b1a4; font-weight: 500; }
input[type="text"], input[type="number"], textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea { min-height: 84px; resize: vertical; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper input { width: 70px; text-align: center; }
.stepper button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 20px; font-weight: 700; color: var(--navy); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.summary { background: var(--sand); border-radius: 14px; padding: 16px 18px; margin: 6px 0 16px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.summary .row b { color: var(--navy); text-align: right; }
.summary .total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 16px; }
.summary .total b { font-size: 20px; font-family: var(--font-display); font-weight: 500; }
.err { color: #b3261e; font-weight: 600; font-size: 14px; min-height: 20px; margin-bottom: 10px; }
.booking-actions { display: grid; gap: 10px; }
.booking-actions .btn { width: 100%; }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.contact-card { display: flex; flex-direction: column; gap: 14px; }
.contact-card .btn { justify-content: flex-start; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.address { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.address svg { width: 20px; height: 20px; color: var(--teal-dark); flex: none; }

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 48px 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 40px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.footer-brand b { display: block; color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.footer-brand span { font-size: 14px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; font-size: 13px; }
.footer-bottom a { color: rgba(255, 255, 255, .78); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 24, 31, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 84vh; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; }
.lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .nav-links, .nav .btn-wa { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 860px) {
  .houses { grid-template-columns: 1fr; }
  .bg-intro { grid-template-columns: 1fr; gap: 28px; }
  .routes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery a:nth-child(6) { grid-row: span 1; }
  .months { grid-template-columns: 1fr; }
  .month.second { display: none; }
  .together .btn { margin-left: 0; }
}
@media (max-width: 520px) {
  .nav { height: 64px; gap: 12px; }
  .brand img { height: 36px; }
  .lang button { padding: 6px 8px; font-size: 12px; }
  .hero { min-height: 88vh; }
  .hero-inner { padding: 100px 0 40px; }
  .kpis { gap: 16px; }
  .house-body { padding: 20px; }
  .features { grid-template-columns: 1fr; }
  .mosaic { grid-auto-rows: 110px; }
  .panel { padding: 18px; }
  .dates { grid-template-columns: 1fr; }
  .day { font-size: 13px; }
}
