/* =========================================================
   Casa Seven Jerez – hoja de estilos
   Réplica de casasevenjerez.com (sin motor de reservas)
   ========================================================= */

:root {
  /* Marca */
  --yellow: #fdff49;
  --yellow-soft: #f7f8bc;
  --brown: #624c40;
  --brown-dark: #3d3129;
  --teal: #417586;
  --ink: #292929;
  --text: #3b3b3b;
  --muted: #6b6b6b;
  --line: #5a5a5a;
  --bg: #fdfdfb;
  --bg-grey: #f5f5f5;
  --cream: #f5f2eb;
  --green-soft: #e2edd7;
  --apt-title: #5c7385;

  /* Tipografía */
  --f-body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --f-head: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --f-wide: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-slab: 'Bitter', Georgia, serif;

  --header-h: 68px;
  --container: 1120px;
  --shadow: 0 2px 6px rgba(0, 0, 0, .18);
  --shadow-card: 2px 3px 5px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: #000; padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.header-inner {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.logo img { height: 46px; width: auto; }
.site-nav { flex: 1; display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; list-style: none; gap: 4px; margin-left: auto; height: var(--header-h); }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: flex; align-items: center; height: 100%;
  padding: 0 9px;
  font-size: 13px; letter-spacing: .02em;
  color: #333; text-decoration: none;
  transition: color .2s;
}
.nav-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--ink);
  transform: scaleX(0); transition: transform .25s;
}
.nav-link:hover { color: #000; }
.nav-link:hover::before, .nav-link.is-active::before { transform: scaleX(1); }
.sub-toggle { display: none; }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  list-style: none; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 18px; font-size: 13.5px; text-decoration: none; color: #333; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--yellow-soft); color: #000; }

.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch button:focus:not(:focus-visible) { outline: none; }
.lang-switch button {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 4px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: #777;
}
.lang-switch svg { width: 20px; height: 20px; filter: drop-shadow(0 0 .5px rgba(0, 0, 0, .4)); }
.lang-switch button[aria-pressed="true"] { color: #000; }
.lang-switch button[aria-pressed="false"] svg { opacity: .55; }
.lang-switch span:not(.lang-sep) { display: none; }
.lang-sep { width: 1px; height: 22px; background: #333; }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 190px; height: 40px; padding: 0 26px;
  background: var(--yellow); color: #111;
  font-family: var(--f-slab); font-weight: 900; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border-radius: 3px;
  transition: filter .2s, transform .2s;
}
.btn-cta:hover { filter: brightness(.95); transform: translateY(-1px); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; background: none; border: 0; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: #222; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .btn-cta { min-width: 0; }
  .nav-link { padding: 0 6px; font-size: 12.5px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; height: auto; margin: 0; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid #eee; }
  .nav-link { height: auto; padding: 16px 4px; font-size: 15px; flex: 1; }
  .nav-link::before { display: none; }
  .nav-link.is-active { font-weight: 600; }
  .sub-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0;
  }
  .sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
  .sub-menu {
    position: static; width: 100%; box-shadow: none; padding: 0 0 10px 12px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .lang-switch { margin: 22px 0; justify-content: center; }
  .lang-switch span:not(.lang-sep) { display: inline; }
  .btn-cta { height: 48px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (portada) ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: min(640px, calc(100svh - var(--header-h)));
}
.hero-media { position: relative; overflow: hidden; background: #d9cfc4; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero-panel {
  background: var(--brown); color: var(--yellow);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px clamp(28px, 6.5vw, 120px);
}
.hero-title {
  font-family: var(--f-head); font-weight: 500;
  font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.01em;
  color: var(--yellow);
}
.hero-title em { font-style: italic; font-weight: 500; text-transform: lowercase; }
.hero-sub {
  margin: 34px 0 0; max-width: 340px;
  font-size: 16px; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase;
}
.hero-cta {
  align-self: flex-start; margin-top: 38px;
  padding: 0 28px 4px; border-bottom: 2px solid var(--yellow);
  font-family: var(--f-body); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .2em;
  color: var(--yellow); text-decoration: none;
  transition: letter-spacing .3s, padding .3s;
}
.hero-cta:hover { letter-spacing: .26em; }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-panel { padding: 44px 24px 52px; }
}

/* ---------- Secciones ---------- */
.section { padding: 72px 0 32px; }
.section-head { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; }
.section-head h2 {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(26px, 3vw, 37px); letter-spacing: .01em; line-height: 1.1;
}
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-top: 4px; }
.intro { max-width: 780px; margin: 0 0 40px; font-size: 15.5px; line-height: 1.7; color: #333; }
.intro p { margin: 0 0 12px; }
.intro ul { padding-left: 20px; }
.intro li { margin: 4px 0; }
.intro strong { font-weight: 600; color: var(--ink); }

/* Tarjetas de apartamentos */
.apt-cards {
  list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin: 0;
}
.apt-card a {
  position: relative; display: block; height: 100%;
  background: #fff; padding: 8px 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.apt-card a:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.apt-card-img { display: block; aspect-ratio: 9 / 16; overflow: hidden; }
.apt-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.apt-card a:hover .apt-card-img img { transform: scale(1.06); }
.apt-card-num {
  position: absolute; left: 8px; right: 8px; top: 24%;
  text-align: center; color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: clamp(28px, 3vw, 42px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.apt-card-info { display: block; padding: 10px 2px 12px; text-align: center; line-height: 1.3; }
.apt-card-info strong { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.apt-card-info span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 960px) { .apt-cards { grid-template-columns: repeat(3, 1fr); } .apt-card-img { aspect-ratio: 3 / 4; } }
@media (max-width: 520px) { .apt-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Servicios */
.services .container { margin-bottom: 0; }
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.service {
  min-height: 370px; padding: 40px 22px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.service img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 30px; }
.service h3 {
  font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  line-height: 1.35; margin-bottom: 18px; color: var(--ink); max-width: 190px;
}
.service p { margin: 0; max-width: 180px; font-style: italic; font-weight: 300; font-size: 14px; line-height: 1.45; color: #444; }
.service-wifi { background: linear-gradient(170deg, #cfe9ef 0%, #e8f3ae 42%, #fad1e2 100%); }
.service-lavadora { background: #f6f7f4; }
.service-toallas { background: #f3e3d8; }
.service-checkin { background: #e6eee0; }
.service-terraza { background: linear-gradient(190deg, #f2c48e 0%, #d8e3b0 30%, #cfdedd 60%, #c3ccf0 100%); }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 0; padding: 36px 18px; }
  .service-terraza { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .service-grid { grid-template-columns: 1fr; } }

/* Galería (tira horizontal) */
.strip { position: relative; }
.strip-track {
  list-style: none; display: flex; gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 6px 6px;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track li { flex: 0 0 auto; scroll-snap-align: start; }
.strip-item { display: block; width: clamp(150px, 15vw, 220px); aspect-ratio: 9 / 20; overflow: hidden; background: #eee; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.strip-item:hover img { transform: scale(1.05); filter: brightness(1.05); }
.strip-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .88); color: #222; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, background .2s;
}
.strip-btn:hover { background: #fff; }
.strip-btn svg { width: 20px; height: 20px; }
.strip-btn[disabled] { opacity: 0; pointer-events: none; }
.strip-prev { left: 14px; }
.strip-next { right: 14px; }

/* Qué hacer – tarjetas giratorias */
.todo { padding-top: 72px; }
.eyebrow { text-align: center; margin: 0 0 4px; font-size: 12px; letter-spacing: .25em; color: var(--muted); }
.title-lined {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-body); font-weight: 500; font-size: clamp(20px, 2.2vw, 25px); letter-spacing: .02em;
}
.title-lined::before, .title-lined::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.todo-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin: 12px 0 34px; }
.flip-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 70px; }
.flip-row + .flip-row { margin-bottom: 30px; }
.flip { position: relative; width: 216px; height: 368px; perspective: 1200px; }
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center;
  padding: 38px 14px 24px; text-align: center;
}
.flip-front { background: var(--card); }
.flip-front h3, .flip-back-title {
  font-family: var(--f-wide); font-weight: 800; font-size: 12.5px; letter-spacing: .24em; line-height: 1.5;
  color: #1f1f1f;
}
.flip-front img { width: 140px; height: 140px; object-fit: contain; margin-top: auto; margin-bottom: 40px; }
.flip-back { background: var(--brown-dark); transform: rotateY(180deg); justify-content: center; }
.flip-back-title { color: var(--yellow); margin-bottom: 18px; }
.flip-back ul { list-style: none; }
.flip-back li { margin: 7px 0; }
.flip-back a {
  font-family: var(--f-slab); font-weight: 800; font-size: 15.5px; line-height: 1.3;
  color: #fff; text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s, color .2s;
}
.flip-back a:hover, .flip-back a:focus-visible { background-size: 100% 2px; color: var(--yellow); }
.flip-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; line-height: 1;
  display: none;
}
.flip.is-flipped .flip-btn span { display: inline-block; transform: rotate(45deg); }
@media (hover: none) { .flip-btn { display: block; } .flip:hover .flip-inner { transform: none; } .flip.is-flipped .flip-inner { transform: rotateY(180deg); } }
@media (max-width: 520px) { .flip { width: calc(50% - 3px); height: 320px; } .flip-front img { width: 110px; height: 110px; } .flip-back a { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

/* ---------- Contacto ---------- */
.contact { padding-top: 72px; }
.contact-box {
  width: min(680px, 100% - 32px); margin: 0 auto;
  background: var(--green-soft); border-radius: 10px;
  padding: clamp(32px, 5vw, 54px) clamp(20px, 5vw, 50px) 40px;
}
.contact-title { font-family: var(--f-wide); font-weight: 800; font-size: clamp(18px, 2vw, 22px); letter-spacing: .26em; color: #3a3a3a; }
.contact-lead { margin: 14px 0 26px; font-size: 14.5px; color: #4a4a4a; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid transparent; border-radius: 4px; background: #fff;
  padding: 13px 16px; font: 16px var(--f-body); color: #222;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23555' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; color: #6b6b6b; }
.contact-form select.has-value { color: #222; }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form ::placeholder { color: #6b6b6b; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(65, 117, 134, .2); }
.contact-form .is-invalid { border-color: #c0392b; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.contact-address { font-style: normal; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: #666; text-align: center; flex: 1; }
.contact-address a { text-decoration: none; }
.form-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.btn-send {
  background: #fff; color: #333; border: 0; padding: 11px 26px; min-width: 160px;
  font-family: var(--f-wide); font-weight: 800; font-size: 14px; letter-spacing: .24em;
  transition: background .2s, color .2s;
}
.btn-send:hover { background: var(--ink); color: #fff; }
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 1px solid #3a3a3a; color: #3a3a3a; padding: 8px 14px; font-size: 13px;
  transition: background .2s, color .2s;
}
.btn-wa svg { width: 18px; height: 18px; }
.btn-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.form-status { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14px; min-height: 1.2em; }
.form-status.is-error { color: #b03a2e; }
.form-status.is-ok { color: #2d6a3e; font-weight: 600; }
@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column-reverse; }
  .form-actions { width: 100%; }
}

.contact-extra {
  width: min(980px, 100% - 32px); margin: 40px auto 0;
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch;
}
.quick-contact { list-style: none; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.quick-contact a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid #e6e6e1; border-radius: 8px;
  text-decoration: none; font-size: 14.5px; color: #333; word-break: break-word;
  transition: border-color .2s, transform .2s;
}
.quick-contact a:hover { border-color: var(--teal); transform: translateX(3px); }
.quick-contact svg { width: 22px; height: 22px; flex: none; color: var(--teal); }
.map { min-height: 280px; border-radius: 10px; overflow: hidden; background: var(--cream); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 28px; text-align: center; color: #4a4a4a;
  background:
    repeating-linear-gradient(45deg, rgba(98, 76, 64, .05) 0 12px, transparent 12px 24px),
    var(--cream);
}
.map-placeholder > svg { width: 38px; height: 38px; color: var(--brown); }
.map-placeholder p { margin: 0; max-width: 420px; font-size: 14.5px; }
.map-placeholder small { color: var(--muted); font-size: 12px; }
.map-load {
  background: var(--brown); color: var(--yellow); border: 0; border-radius: 3px;
  padding: 10px 22px; font-weight: 600; letter-spacing: .05em;
}
.map-load:hover { filter: brightness(1.1); }
@media (max-width: 760px) { .contact-extra { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer {
  margin-top: 60px;
  background: #f7f8f6; border-top: 2px solid #d6d6d4;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .06);
}
.footer-inner { width: min(var(--container), 100% - 32px); margin: 0 auto; padding: 14px 0 16px; text-align: center; font-size: 12.5px; color: #222; }
.footer-inner p { margin: 2px 0; }
.footer-links a { text-decoration: none; color: #555; }
.footer-links a:hover { text-decoration: underline; }

/* Botones flotantes */
.floating { position: fixed; right: 18px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.floating a { display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; transition: transform .2s, opacity .3s; }
.floating a:hover { transform: scale(1.08); }
.social { width: 38px; height: 38px; background: #000; color: #fff; }
.social svg { width: 22px; height: 22px; }
.to-top { width: 44px; height: 44px; background: var(--teal); color: #fff; margin-bottom: 6px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Visor de fotos (lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 16, 14, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 70px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 140px); width: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-figure figcaption { display: flex; gap: 16px; color: #eee; font-size: 14px; margin-top: 12px; }
.lb-count { color: #aaa; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 60px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* =========================================================
   Páginas de apartamento
   ========================================================= */
.page-apt main { background: var(--bg-grey); }
.breadcrumb { padding: 12px 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: #000; text-decoration: underline; }
.breadcrumb [aria-current] { color: #222; }

.apt-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.apt-hero-media { position: relative; overflow: hidden; background: #ddd; }
.apt-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apt-hero-panel { background: var(--cream); padding: 60px clamp(24px, 7vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.apt-hero-panel h1 { font-family: var(--f-body); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .02em; color: var(--apt-title); margin-bottom: 20px; }
.apt-specs { list-style: none; font-size: 14.5px; line-height: 1.75; color: #333; }
.apt-specs li::before { content: "—"; margin-right: 10px; color: #b8ab97; }
.apt-hero-cta {
  align-self: flex-start; margin-top: 28px;
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px;
  background: var(--yellow); color: #111; text-decoration: none; border-radius: 3px;
  font-family: var(--f-slab); font-weight: 900; font-size: 14px;
  transition: filter .2s;
}
.apt-hero-cta:hover { filter: brightness(.95); }
@media (max-width: 768px) {
  .apt-hero { grid-template-columns: 1fr; min-height: 0; }
  .apt-hero-media { aspect-ratio: 4 / 3; }
  .apt-hero-panel { padding: 36px 24px 40px; }
}

.features { padding: 60px 0 50px; border-top: 40px solid #fff; box-shadow: inset 0 3px 3px -2px rgba(0, 0, 0, .25); }
.feature-grid { width: min(960px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 60px; }
.feature-img {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border: 4px solid #fff; border-radius: 4px; box-shadow: var(--shadow); background: #ddd;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-img:hover img { transform: scale(1.04); }
.feature h3 { margin: 10px 0 2px; font-family: var(--f-body); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.feature p { margin: 0; font-size: 14px; color: #444; }
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; gap: 36px; } }

.gallery-bar {
  background: var(--yellow-soft); text-align: center;
  font-family: var(--f-body); font-weight: 400; font-size: 14px; color: #222;
  padding: 14px 0; box-shadow: 0 3px 4px rgba(0, 0, 0, .25);
  position: relative; z-index: 1;
}
.viewer { width: min(980px, 100% - 32px); margin: 0 auto; padding: 20px 0 40px; }
.viewer-stage { position: relative; background: #e8e8e6; }
.viewer-main { display: block; aspect-ratio: 16 / 9; }
.viewer-main img { width: 100%; height: 100%; object-fit: contain; background: #1d1d1b; transition: opacity .25s; }
.viewer-main img.is-loading { opacity: .3; }
.viewer-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: #222; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.viewer-btn:hover { background: #fff; }
.viewer-btn svg { width: 20px; height: 20px; }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-count { position: absolute; right: 12px; bottom: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 20px; }
.viewer-thumbs { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 6px; scrollbar-width: thin; }
.viewer-thumbs li { flex: none; }
.viewer-thumb { display: block; width: 92px; height: 92px; overflow: hidden; opacity: .6; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.viewer-thumb:hover, .viewer-thumb.is-current { opacity: 1; }
.viewer-thumb.is-current { outline-color: var(--teal); }

.apt-contact { background: var(--brown); color: var(--yellow); text-align: center; padding: 50px 0; }
.apt-contact h2 { color: var(--yellow); font-family: var(--f-head); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); }
.apt-contact p { margin: 10px 0 24px; color: #f4efd9; }
.apt-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px;
  border: 1px solid var(--yellow); border-radius: 30px; color: var(--yellow); text-decoration: none; font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-pill svg { width: 20px; height: 20px; }
.btn-pill:hover { background: var(--yellow); color: #111; }
.btn-wa-solid { background: var(--yellow); color: #111; }
.btn-wa-solid:hover { background: #fff; border-color: #fff; }

.apt-pager { display: flex; justify-content: space-between; gap: 12px; padding: 28px 0 0; }
.apt-pager a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; color: #333; padding: 8px 0; }
.apt-pager a:hover { color: #000; text-decoration: underline; }
.apt-pager svg { width: 16px; height: 16px; }

.others { padding: 40px 0 10px; }
.others .section-head { padding-left: 0; }
.others .section-head h2 { font-size: clamp(20px, 2vw, 26px); }
.others-list { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.others-list a { display: block; background: #fff; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); transition: transform .2s, box-shadow .2s; }
.others-list a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .15); }
.others-list img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.others-list span { display: block; padding: 10px 12px 12px; line-height: 1.3; }
.others-list strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.others-list small { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .others-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .others-list { grid-template-columns: repeat(2, 1fr); } }
