/* ============================================================
   Casa 4 Caminos – Stylesheet  (light green theme)
   Background: #f5fffa | rgb(245,255,250)
   ============================================================ */

:root {
  --bg:       #f5fffa;
  --surface:  #ffffff;
  --surface2: #eaf7ef;
  --text:     #192e22;
  --muted:    #4d7260;
  --brand:    #1a9e5c;
  --brand2:   #2ecb7a;
  --danger:   #d93025;
  --ok:       #1e7e44;
  --ring:     rgba(26,158,92,.35);
  --radius:   18px;
  --shadow:   0 18px 60px rgba(0,60,30,.12);
  --shadow2:  0 6px 24px rgba(0,60,30,.09);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Skip link ──────────────────────────────────────────── */
.skip {
  position: absolute; left: -999px; top: 12px;
  background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
}
.skip:focus { left: 20px; z-index: 1000; }

/* ── Header / Nav ───────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(245,255,250,.82);
  border-bottom: 1px solid rgba(0,80,40,.10);
}
.header__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: var(--shadow2);
  font-weight: 800; letter-spacing: .5px;
  color: #fff;
}
.brand__name { font-weight: 800; color: var(--text); }
.brand__tag  { color: var(--muted); font-size: .92rem; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); font-weight: 650; font-size: .98rem; }
.nav a:hover { color: var(--text); }
.nav__cta {
  color: var(--surface) !important;
  padding: 10px 16px; border-radius: 999px;
  background: var(--brand);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 800;
}
.nav__cta:hover { background: var(--brand2) !important; color: #fff !important; }

/* Language selector */
.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(0,80,40,.18);
  background: rgba(255,255,255,.7);
  color: var(--text); font-weight: 700; font-size: .95rem;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.lang-btn:hover  { background: rgba(255,255,255,1); }
.lang-btn .flag  { font-size: 1.15rem; line-height: 1; }
.lang-btn .chevron { font-size: .75rem; opacity: .6; margin-left: 2px; }

.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--surface);
  border: 1px solid rgba(0,80,40,.15);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 140px;
  display: none;
  z-index: 200;
}
.lang-dropdown.is-open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  cursor: pointer; font-weight: 700; font-size: .95rem;
  transition: background .12s;
}
.lang-option:hover   { background: var(--surface2); }
.lang-option.active  { color: var(--brand); }
.lang-option .flag   { font-size: 1.15rem; }

/* Mobile hamburger */
.navToggle {
  display: none; gap: 6px; flex-direction: column;
  background: transparent; border: 0; padding: 10px;
  border-radius: 12px; cursor: pointer;
}
.navToggle:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.navToggle__bar {
  width: 26px; height: 2px;
  background: var(--text); opacity: .75; border-radius: 999px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid; align-items: center;
  overflow: hidden;
}
.hero__fx {
  position: absolute; inset: -120px;
  transform: translateZ(0);
}
.hero__fx::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('../Images/alhambra.jpg');
  background-size: cover;
  background-position: center;
  opacity: .52;
  filter: grayscale(.05) saturate(1.1) contrast(1.08);
}
.hero__fx::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg,
    rgba(10,30,18,.72),
    rgba(10,30,18,.30) 48%,
    rgba(10,30,18,.72));
}
.hero__content { position: relative; padding: 70px 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px; align-items: center;
}
.hero__copy { max-width: 60ch; }

.hero__badge {
  display: inline-flex; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,30,18,.50);
  color: #fff;
  font-weight: 700;
}
.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.02em;
  color: #fff;
}
.hero p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.06rem; max-width: 62ch; }

.hero__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  color: #fff; font-weight: 800;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btn:focus { outline: 2px solid rgba(255,255,255,.5); outline-offset: 2px; }
.btn--primary {
  border-color: rgba(46,203,122,.45);
  background: linear-gradient(135deg, rgba(26,158,92,.55), rgba(46,203,122,.40));
}
.btn--ghost { background: rgba(10,30,18,.35); }

/* Buttons outside hero (light background context) */
.section .btn--primary, .form .btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.section .btn--primary:hover, .form .btn--primary:hover {
  background: var(--brand2);
  border-color: var(--brand2);
  color: #fff;
}

.hero__highlights { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pill {
  padding: 9px 12px; border-radius: 999px;
  background: rgba(10,30,18,.50);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

/* ── Hero Collage ───────────────────────────────────────── */
.heroCollage {
  position: relative;
  height: 520px;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.heroCollage::before {
  content: "";
  position: absolute; inset: -1px;
  background:
    radial-gradient(520px 260px at 18% 18%, rgba(46,203,122,.20), transparent 58%),
    radial-gradient(520px 260px at 82% 28%, rgba(26,158,92,.15), transparent 60%);
  opacity: .85;
}
.heroCollage::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28));
  pointer-events: none;
}

.heroCard {
  position: absolute;
  --tx: 0px; --ty: 0px; --rot: 0deg; --scale: 1; --lift: 0px;
  border: 0; padding: 0; background: transparent;
  border-radius: 22px; overflow: hidden; cursor: pointer;
  outline: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  transform: translate3d(var(--tx), calc(var(--ty) + var(--lift)), 0) rotate(var(--rot)) scale(var(--scale));
  transition: transform .22s ease, outline-color .22s ease, box-shadow .22s ease;
}
.heroCard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heroCard::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.45));
  opacity: .85; pointer-events: none;
}
.heroCard__label {
  position: absolute; left: 12px; bottom: 12px;
  padding: 8px 10px; border-radius: 999px;
  background: rgba(10,25,16,.75);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.98);
  font-weight: 900; letter-spacing: .2px;
}
.heroCard:hover { --lift: -8px; --scale: 1.03; outline-color: rgba(46,203,122,.40); }
.heroCard:focus { outline: 2px solid rgba(255,255,255,.5); outline-offset: 3px; }

.heroCard--a { left: 22px;  top: 26px;     width: 52%; height: 46%; --rot: -2deg; }
.heroCard--b { right: 22px; top: 18px;     width: 44%; height: 40%; --rot:  3deg; }
.heroCard--c { left: 36px;  bottom: 22px;  width: 46%; height: 40%; --rot:  2deg; }
.heroCard--d { right: 32px; bottom: 26px;  width: 52%; height: 46%; --rot: -1deg; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--alt {
  background: linear-gradient(180deg, var(--surface2), rgba(245,255,250,.5));
}
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 28px; flex-wrap: wrap;
}
.section__head h2 {
  margin: 0; font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -.01em;
}
.section__head p { margin: 0; color: var(--muted); max-width: 70ch; }

/* ── Grids ──────────────────────────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid rgba(0,80,40,.10);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow2);
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p   { margin: 0; color: var(--muted); }
.card--soft {
  background: rgba(255,255,255,.65);
  border-color: rgba(0,80,40,.08);
}

/* ── Split (La casa) ────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }

.features { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 18px 0; }
.feature {
  padding: 14px; border-radius: 16px;
  border: 1px solid rgba(0,80,40,.10);
  background: rgba(234,247,239,.6);
}
.feature__k { display: block; color: var(--muted); font-weight: 700; font-size: .92rem; }
.feature__v { display: block; font-weight: 800; margin-top: 2px; }

/* ── Mosaic ─────────────────────────────────────────────── */
.mosaic { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mosaic__item {
  border: 0; padding: 0; background: transparent;
  border-radius: 16px; overflow: hidden;
  outline: 1px solid rgba(0,80,40,.12);
  box-shadow: var(--shadow2); cursor: pointer;
}
.mosaic__item img { width: 100%; height: 150px; object-fit: cover; transition: transform .25s; }
.mosaic__item:hover img { transform: scale(1.04); }

/* ── Gallery ────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gallery__item {
  border: 0; padding: 0; background: transparent;
  border-radius: 16px; overflow: hidden;
  outline: 1px solid rgba(0,80,40,.12);
  box-shadow: var(--shadow2); cursor: pointer;
}
.gallery__item img { width: 100%; height: 170px; object-fit: cover; transition: transform .25s ease; }
.gallery__item:hover img { transform: scale(1.04); }

/* ── Location KPIs ──────────────────────────────────────── */
.kpi { display: flex; align-items: baseline; gap: 6px; }
.kpi__n { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; color: var(--brand); }
.kpi__u { color: var(--muted); font-weight: 800; }
.kpi__t { margin-top: 6px; color: var(--text); font-weight: 800; }

/* ── Booking Form ───────────────────────────────────────── */
.form {
  background: var(--surface);
  border: 1px solid rgba(0,80,40,.10);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow2);
}
.form__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,80,40,.18);
  background: rgba(245,255,250,.6);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { color: var(--text); background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,158,92,.15);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.field--full { grid-column: 1 / -1; }
.field--hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form__actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.form__hint { color: var(--muted); font-size: .92rem; }

/* ── Alert ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 16px;
  border: 1px solid rgba(0,80,40,.18);
  margin: 0 0 16px; background: rgba(234,247,239,.7);
  font-weight: 700; color: var(--text);
}
.alert--ok    { border-color: rgba(26,158,92,.40); background: rgba(26,158,92,.08); color: var(--ok); }
.alert--error { border-color: rgba(217,48,37,.35);  background: rgba(217,48,37,.06); color: var(--danger); }

/* ── Footer ─────────────────────────────────────────────── */
.section--footer {
  padding: 32px 0;
  border-top: 1px solid rgba(0,80,40,.12);
  background: var(--surface2);
}
.footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.footer__brand { font-weight: 900; color: var(--text); }
.footer__meta  { color: var(--muted); font-weight: 700; font-size: .92rem; }
.footer__links { display: flex; gap: 14px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.footer__links a:hover { color: var(--brand); }

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  display: none; place-items: center;
  z-index: 100; background: rgba(0,0,0,.60);
}
.lightbox.is-open { display: grid; }
.lightbox__backdrop { position: absolute; inset: 0; background: transparent; border: 0; }
.lightbox__panel {
  position: relative;
  width: min(980px, calc(100% - 34px));
  background: var(--surface);
  border: 1px solid rgba(0,80,40,.15);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-top: 54px;
}
.lightbox__close {
  position: absolute; right: 10px; top: 10px;
  padding: 10px 12px; border-radius: 999px;
  border: 1px solid rgba(0,80,40,.18);
  background: var(--surface2);
  color: var(--text); font-weight: 850; cursor: pointer;
}
.lightbox__img {
  width: 100%;
  height: min(calc(76vh - 54px), 720px);
  object-fit: contain;
  background: var(--surface2);
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(0,80,40,.18);
  background: rgba(255,255,255,.85);
  color: var(--text); font-size: 26px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}
.lightbox__nav:hover    { background: #fff; }
.lightbox__nav:focus    { outline: 2px solid var(--ring); outline-offset: 2px; }
.lightbox__nav--prev    { left:  10px; }
.lightbox__nav--next    { right: 10px; }
.lightbox__nav[disabled]{ opacity: .35; cursor: default; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .mosaic__item img { height: 160px; }
  .hero__grid { grid-template-columns: 1fr; gap: 16px; }
  .heroCollage { height: 460px; }
}

@media (max-width: 760px) {
  .navToggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px;
    background: rgba(245,255,250,.96);
    border-bottom: 1px solid rgba(0,80,40,.10);
    box-shadow: var(--shadow2);
  }
  .nav a { padding: 12px 12px; border-radius: 14px; }
  .nav a:hover { background: var(--surface2); }
  .nav.is-open { display: flex; }
  .nav__cta { margin-top: 6px; }

  .form__grid { grid-template-columns: 1fr; }
  .hero__content { padding: 56px 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item img { height: 220px; }
  .heroCollage { height: 420px; border-radius: 22px; }
  .heroCard--a { left: 14px; top: 16px;    width: 64%; height: 42%; }
  .heroCard--b { right: 14px; top: 14px;   width: 52%; height: 36%; }
  .heroCard--c { left: 14px;  bottom: 14px; width: 58%; height: 36%; }
  .heroCard--d { right: 14px; bottom: 16px; width: 66%; height: 42%; }

  .lang-btn .lang-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .gallery__item img, .heroCard, .mosaic__item img { transition: none !important; }
}
