/* ===== Condo Puerto Aventuras — style ===== */
:root {
  --ocean: #0e7490;
  --ocean-dark: #155e75;
  --sand: #fdf6ec;
  --sun: #f59e0b;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-weight: 700; font-size: 1.05rem; color: var(--ocean-dark); display: flex; align-items: center; gap: 0.4rem; }
.main-nav { display: flex; gap: 1.1rem; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.main-nav a:hover { color: var(--ocean); }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }
.lang-toggle {
  border: 1.5px solid var(--ocean); background: none; color: var(--ocean);
  border-radius: 999px; padding: 0.25rem 0.8rem; font-weight: 700; cursor: pointer;
}
.lang-toggle:hover { background: var(--ocean); color: var(--white); }
.nav-toggle { display: none; border: none; background: none; font-size: 1.4rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: url("../images/piscine-1.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(8, 47, 63, 0.35), rgba(8, 47, 63, 0.55)); }
.hero-content { position: relative; padding: 2rem 1.25rem; max-width: 780px; }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.85rem; margin-bottom: 0.8rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 1rem; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.hero-sub { font-size: 1.15rem; margin-bottom: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.hero-rating { color: #ffd166; font-weight: 700; margin-bottom: 1.6rem; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hero-rating span { color: var(--white); font-weight: 500; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 0.75rem 1.6rem; font-size: 1rem; font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sun); color: #442c02; border: none; box-shadow: var(--shadow); }
.btn-ghost { background: rgba(255,255,255,0.15); color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); }

/* ---- Quick facts ---- */
.quickfacts { background: var(--ocean-dark); color: var(--white); padding: 1.1rem 0; }
.facts-grid { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem; text-align: center; }
.fact { display: flex; flex-direction: column; min-width: 90px; }
.fact-icon { font-size: 1.4rem; }
.fact strong { font-size: 1.15rem; }
.fact span:last-child { font-size: 0.85rem; opacity: 0.85; }

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--sand); }
.section h2 { font-size: 2rem; color: var(--ocean-dark); margin-bottom: 0.6rem; text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 680px; margin: 0 auto 2.2rem; }

/* ---- Gallery ---- */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; box-shadow: var(--shadow); aspect-ratio: 4 / 3;
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.9rem; font-size: 0.85rem; color: var(--white);
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
}

/* ---- Features ---- */
.features-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.feature-card h3 { color: var(--ocean-dark); margin-bottom: 0.8rem; font-size: 1.15rem; }
.feature-card ul { list-style: none; }
.feature-card li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; color: var(--ink-soft); }
.feature-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ocean); font-weight: 700; }

/* ---- Map ---- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---- Rates ---- */
.rates-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: 850px; margin: 0 auto; }
.rate-card {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.4rem;
  text-align: center; box-shadow: var(--shadow); border: 2px solid transparent;
}
.rate-card.featured { border-color: var(--sun); transform: scale(1.03); }
.rate-card h3 { color: var(--ocean-dark); }
.rate-period { color: var(--ink-soft); font-size: 0.9rem; margin: 0.3rem 0 0.9rem; }
.rate-price { font-size: 1.9rem; font-weight: 800; color: var(--ocean); }
.rate-price span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.rates-note { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 1.6rem; }

/* ---- Airbnb CTA ---- */
.airbnb-cta { text-align: center; }
.airbnb-rating { font-size: 1.3rem; color: var(--sun); font-weight: 700; margin-bottom: 1.2rem; }
.airbnb-rating span { color: var(--ink); font-weight: 600; }
.btn-lg { font-size: 1.15rem; padding: 1rem 2.4rem; }

/* ---- Contact ---- */
.contact-wrap { max-width: 720px; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.contact-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  border: 1.5px solid #d1d5db; border-radius: 10px; padding: 0.65rem 0.8rem;
  font-size: 1rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ocean); border-color: var(--ocean); }
.contact-form .btn { align-self: center; margin-top: 0.4rem; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--ink-soft); }

/* ---- Footer ---- */
.site-footer { background: var(--ocean-dark); color: rgba(255,255,255,0.85); text-align: center; padding: 1.4rem 1rem; font-size: 0.9rem; }

/* ---- Lightbox ---- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 25, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 2rem;
}
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.lightbox-caption { color: var(--white); font-size: 1rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer;
}

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb; gap: 0.8rem;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .gallery-item.wide { grid-column: span 1; }
  .hero { min-height: 70vh; }
}
