/* ==========================================================================
   Edificio Alhambra Barcelona — Tema Arquitectónico Contemporáneo v2.0.0
   Paleta 100 % Luminosa guiada por el Logotipo Original:
     Blanco Puro (#FFFFFF) · Blanco Cálido Arquitectónico (#FFFDF8)
     Amarillo Logo Principal (#F0A828) · Amarillo Dorado (#F8B840)
     Ámbar Profundo para Enlaces (#B87200 / #D98A00)
     Crema Amarillo Suave (#FFF8E1 / #FFF3C4) · Borde Dorado Suave (#F2D488)
     Tipografía Geométrica Contemporánea: Space Grotesk + Plus Jakarta Sans
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --bg: #FFFDF9;
  --bg-soft: #FFF9EB;
  --bg-card: #FFFFFF;
  --yellow-logo: #F0A828;
  --yellow-bright: #F8B840;
  --yellow-light: #F8C858;
  --yellow-deep: #B87200;
  --yellow-hover: #D98A00;
  --yellow-tint: #FFF4CC;
  --yellow-pale: #FFF9E6;
  --border: #EDE5D2;
  --border-yellow: #F2D280;
  --ink: #1E2022;
  --ink-soft: #32363B;
  --ink-muted: #5A5F66;
  --shadow-sm: 0 4px 16px rgba(240, 168, 40, 0.08), 0 1px 4px rgba(30, 32, 34, 0.04);
  --shadow-md: 0 12px 32px rgba(240, 168, 40, 0.15), 0 4px 12px rgba(30, 32, 34, 0.06);
  --max: 1080px;
  --header-h: 4.6rem;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.03rem;
  line-height: 1.76;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(240, 168, 40, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--yellow-deep);
  text-decoration: underline;
  text-decoration-color: rgba(240, 168, 40, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--yellow-logo);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 4.5rem);
}

h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.38rem, 2.4vw, 1.85rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: clamp(1.16rem, 1.9vw, 1.4rem);
  margin: 1.35rem 0 0.55rem;
  color: var(--ink-soft);
}

p {
  margin: 0 0 1.05rem;
}

ul, ol {
  margin: 0 0 1.15rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.45rem;
}

.heading-ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.heading-ol > li {
  margin: 0;
}

/* —— Top Reading Progress Bar (Logo Yellow) —— */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(240, 168, 40, 0.14);
  z-index: 1001;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow-logo), var(--yellow-bright));
  transition: width 0.1s linear;
}

/* —— Accessibility Skip Link —— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: var(--yellow-logo);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  z-index: 1100;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

/* ==========================================================================
   WHITE MINIMALIST ARCHITECTURAL HEADER (NO DARK TOPBAR)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--yellow-logo);
  box-shadow: 0 4px 20px rgba(240, 168, 40, 0.1);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.site-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 2px solid var(--yellow-logo);
  object-fit: contain;
  background: var(--white);
  padding: 2px;
  box-shadow: 0 3px 10px rgba(240, 168, 40, 0.22);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.logo:hover .site-logo-img {
  transform: rotate(-4deg) scale(1.04);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.site-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  margin-top: 0.12rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow-pale);
  border: 1.5px solid var(--yellow-logo);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}

.site-nav .primary-menu,
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  font-family: var(--font-display);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  background: var(--yellow-pale);
  border-color: var(--border-yellow);
  color: var(--ink);
}

.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: var(--yellow-logo);
  color: var(--ink);
  font-weight: 700;
  border-color: var(--yellow-hover);
  box-shadow: 0 3px 10px rgba(240, 168, 40, 0.28);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 2px solid var(--yellow-logo);
    padding: 1rem 1.5rem 1.4rem;
    box-shadow: 0 14px 28px rgba(30, 32, 34, 0.12);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav .primary-menu,
  .site-nav > ul {
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
  }
  .site-nav a {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
  }
}

/* ==========================================================================
   MODERN HORIZONTAL STICKY CHAPTER BAR (REPLACES LEFT SIDEBAR)
   ========================================================================== */
.chapter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 840;
  background: rgba(255, 253, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-yellow);
  box-shadow: 0 2px 10px rgba(240, 168, 40, 0.08);
  padding: 0.55rem 1.25rem;
}

.chapter-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chapter-bar-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow-deep);
  white-space: nowrap;
  flex-shrink: 0;
}

.chapter-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.chapter-bar-list li {
  margin: 0;
  flex-shrink: 0;
}

.chapter-bar-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.chapter-bar-list a:hover,
.chapter-bar-list li.is-current > a,
.chapter-bar-list a.is-active {
  background: var(--yellow-tint);
  border-color: var(--yellow-logo);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(240, 168, 40, 0.2);
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--yellow-logo);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ==========================================================================
   BRIGHT ARCHITECTURAL SPLIT HERO (WHITE & YELLOW — NO DARK OVERLAYS)
   ========================================================================== */
.arch-hero-home {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF4 52%, #FFF3C8 100%);
  border-bottom: 2px solid var(--border-yellow);
  padding: 3rem 1.5rem 3.4rem;
  overflow: hidden;
}

.arch-hero-home::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 184, 64, 0.25) 0%, rgba(248, 184, 64, 0) 70%);
  pointer-events: none;
}

.arch-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 820px) {
  .arch-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.arch-hero-copy {
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-left: 6px solid var(--yellow-logo);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-md);
}

.arch-hero-copy h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  line-height: 1.15;
  margin: 0;
}

.arch-hero-media .figure-block {
  margin: 0 auto;
  max-width: 460px;
  background: var(--white);
  border: 2px solid var(--yellow-logo);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: 12px 12px 0 var(--yellow-light), var(--shadow-md);
}

.arch-hero-media .figure-img-wrap {
  background: var(--white);
  border-radius: 10px;
  padding: 0;
}

.arch-hero-media .figure-block img {
  max-height: 310px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Interior Page Hero — Bright White & Yellow Split Banner */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF4 55%, #FFF3C8 100%);
  border-bottom: 2px solid var(--border-yellow);
  padding: 2.25rem 1.5rem 2.5rem;
}

.page-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.page-hero-text {
  flex: 1 1 320px;
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-left: 6px solid var(--yellow-logo);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.page-hero h1 {
  color: var(--ink);
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
}

.page-hero-thumb {
  flex: 0 0 auto;
}

.page-hero-thumb .figure-block {
  margin: 0;
  width: 240px;
  max-width: 240px;
  background: var(--white);
  border: 2px solid var(--yellow-logo);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: 8px 8px 0 var(--yellow-light), var(--shadow-sm);
}

.page-hero-thumb .figure-img-wrap {
  background: var(--white);
  padding: 0;
  border-radius: 9px;
}

.page-hero-thumb .figure-block img {
  max-height: 140px;
  width: 100%;
  object-fit: cover;
  border-radius: 9px;
}

/* ==========================================================================
   MAIN CONTAINER & INLINE TABLE OF CONTENTS (.toc)
   ========================================================================== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3.5rem;
}

.toc {
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-top: 4px solid var(--yellow-logo);
  border-radius: 14px;
  padding: 1.4rem 1.75rem;
  margin: 0 0 2.25rem;
  box-shadow: var(--shadow-sm);
}

.toc h2 {
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.toc h2::before {
  content: "◆";
  color: var(--yellow-logo);
  font-size: 1rem;
}

.toc-body ul,
.toc-body ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem 2rem;
}

@media (min-width: 680px) {
  .toc-body ul,
  .toc-body ol {
    grid-template-columns: repeat(2, 1fr);
  }
}

.toc-body li {
  margin: 0;
  font-size: 0.94rem;
}

.toc a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.toc a:hover {
  color: var(--yellow-deep);
  text-decoration: underline;
}

/* ==========================================================================
   LUMINOUS ARCHITECTURAL SECTIONS, HEADINGS & SHOWCASE CARDS
   ========================================================================== */
.alh-section {
  margin-bottom: 1.75rem;
  scroll-margin-top: calc(var(--header-h) + 4.5rem);
}

/* Section Heading — Bright White & Yellow Architectural Bar (NEVER DARK) */
.alh-section-heading {
  background: linear-gradient(90deg, var(--yellow-tint) 0%, var(--white) 90%);
  color: var(--ink);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid var(--border-yellow);
  border-left: 6px solid var(--yellow-logo);
  margin: 2.5rem 0 1.35rem;
  box-shadow: var(--shadow-sm);
}

.alh-section-heading h2,
.alh-section-heading h3,
.alh-section-heading li {
  color: var(--ink);
  margin: 0;
  border: 0;
  padding: 0;
}

/* Alternating Feature Bands (e.g., Home page showcase cards) */
.alh-section-band {
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-top: 4px solid var(--yellow-logo);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 1.85rem 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.alh-section-band:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Also style non-band mixed media+text sections on Inicio as clean white cards */
.is-front-main .alh-section:not(.arch-hero-home) {
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-left: 5px solid var(--yellow-logo);
  border-radius: 16px;
  padding: 1.65rem 1.85rem;
  margin: 1.65rem 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.is-front-main .alh-section:not(.arch-hero-home):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.alh-highlight-box {
  padding: 1.35rem 1.6rem;
  border: 1.5px solid var(--border-yellow);
  border-left: 5px solid var(--yellow-logo);
  background: var(--yellow-pale);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.source-note {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-style: italic;
  text-align: right;
  margin-top: 0.3rem;
}

/* —— Visita 3-Card Architectural Grid (.alh-cards-row) —— */
.alh-cards-row {
  display: grid;
  gap: 1.4rem;
  margin: 1.35rem 0 1.85rem;
}

@media (min-width: 760px) {
  .alh-cards-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.alh-info-card {
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-top: 4px solid var(--yellow-logo);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alh-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.alh-info-card h3 {
  margin: 0.7rem 0 0.55rem;
  font-size: 1.32rem;
  color: var(--ink);
}

.alh-info-card p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.alh-info-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PROPORTIONAL ARCHITECTURAL PHOTOGRAPHS & WHITE/YELLOW ZOOM BADGE
   ========================================================================== */

.figure-block {
  margin: 0 0 0.95rem;
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.figure-block:last-child {
  margin-bottom: 0;
}

.figure-block:hover {
  border-color: var(--yellow-logo);
  box-shadow: var(--shadow-md);
}

.figure-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  padding: 0.5rem;
  overflow: hidden;
}

.figure-img-wrap[data-zoomable="true"] {
  cursor: zoom-in;
}

.figure-img-wrap[data-zoomable="true"]::after {
  content: "🔍";
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1.5px solid var(--yellow-logo);
  font-size: 0.82rem;
  line-height: 1;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(30, 32, 34, 0.16);
  transition: all 0.2s ease;
}

.figure-img-wrap[data-zoomable="true"]:hover::after {
  background: var(--yellow-logo);
  color: var(--ink);
  transform: scale(1.08);
}

.figure-block img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 245px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
  transition: transform 0.25s ease;
}

.figure-img-wrap[data-zoomable="true"]:hover img {
  transform: scale(1.02);
}

.figure-block figcaption {
  padding: 0.6rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
  background: var(--yellow-pale);
  border-top: 1px solid var(--border-yellow);
  text-align: center;
}

.figure-block figcaption p {
  margin: 0 0 0.2rem;
}

.figure-block figcaption p:last-child {
  margin-bottom: 0;
}

/* 1. Standalone single figures in a section */
.alh-section > .figure-block {
  max-width: 390px;
  margin: 0.9rem auto 1.2rem;
}

.alh-section > .figure-block.is-wide-banner {
  max-width: 700px;
}

.alh-section > .figure-block.is-tall-doc {
  max-width: 430px;
}

.alh-section > .figure-block.is-tall-doc img {
  max-height: 350px;
}

/* 2. Side-by-Side Image + Text Rows (.alh-media-row) */
.alh-media-row {
  display: grid;
  gap: 1.6rem;
  align-items: center;
  margin: 0.85rem 0;
}

@media (max-width: 719px) {
  .alh-media-row .alh-col-media {
    max-width: 290px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (min-width: 720px) {
  .alh-media-row.cols-2 {
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 2.1rem;
  }
  .alh-media-row.cols-2:has(> .alh-col-text:first-child) {
    grid-template-columns: minmax(0, 1fr) 255px;
  }
  .alh-media-row.cols-2:has(.figure-block.is-icon) {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .alh-media-row.cols-2:has(> .alh-col-text:first-child):has(.figure-block.is-icon) {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
  .alh-media-row.cols-2:has(> .alh-col-embed:first-child) {
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  }
}

.alh-media-row .figure-block {
  width: 100%;
  max-width: 255px;
  margin: 0 auto;
}

.alh-media-row .figure-block img {
  max-height: 225px;
}

/* 3. Small icons & emblems (.is-icon) */
.figure-block.is-icon {
  max-width: 125px;
  margin-left: auto;
  margin-right: auto;
}

.figure-block.is-icon img {
  max-height: 95px;
}

/* 4. Multi-Figure Architectural Grids (.figure-row.cols-2/3) */
.figure-row {
  display: grid;
  gap: 1.25rem;
  margin: 1.15rem auto;
  align-items: start;
}

.figure-row.cols-2 {
  max-width: 700px;
}

.figure-row.cols-3 {
  max-width: 920px;
}

@media (min-width: 580px) {
  .figure-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .figure-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.figure-row.cols-2 .figure-block img {
  max-height: 225px;
}

.figure-row.cols-3 .figure-block img {
  max-height: 200px;
}

/* —— Video, Map, Street View & Google Drive Embeds —— */
.embed-row {
  display: grid;
  gap: 1.4rem;
  margin: 1.15rem 0;
}

@media (min-width: 680px) {
  .embed-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-frame-wrap {
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-embed-frame {
  border: 1.5px solid var(--border-yellow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  max-width: 700px;
  margin: 0.6rem auto;
}

.embed-row .map-embed-frame {
  max-width: none;
  margin: 0;
}

.map-embed-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* Google Maps Review Card (Visita Sec 11) */
.gmaps-review-card {
  max-width: 540px;
  margin: 0.85rem auto;
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-left: 5px solid var(--yellow-logo);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gmaps-review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gmaps-review-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.gmaps-review-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--yellow-logo);
}

.gmaps-review-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gmaps-review-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}

.gmaps-review-stars {
  font-size: 0.9rem;
  color: var(--yellow-deep);
  font-weight: 700;
}

/* Google Drive PDF Card (Visita Sec 18) */
.drive-embed-card {
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.drive-preview-frame {
  position: relative;
  width: 100%;
  height: 260px;
  background: var(--bg-soft);
}

.drive-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.drive-card-footer {
  padding: 0.8rem 1rem;
  background: var(--yellow-pale);
  border-top: 1px solid var(--border-yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drive-thumb-preview .figure-block {
  max-width: 110px;
  margin: 0;
}

.drive-thumb-preview .figure-block img {
  max-height: 70px;
}

.drive-file-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1.5px solid var(--yellow-logo);
  border-radius: 8px;
}

.drive-file-badge:hover {
  background: var(--yellow-logo);
  color: var(--ink);
}

.drive-file-badge img {
  width: 22px;
  height: 22px;
}

/* —— Press List Styling on /actualidad —— */
.alh-section ul li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.alh-section ul li:last-child {
  border-bottom: 0;
}

/* —— Yellow Architectural Buttons (.alh-btn) —— */
.alh-btn-wrap {
  margin: 1.15rem 0 0.25rem;
}

.alh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow-logo);
  color: var(--ink);
  border: 1.5px solid var(--yellow-hover);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(240, 168, 40, 0.28);
  transition: all 0.2s ease;
}

.alh-btn::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.2s ease;
}

.alh-btn:hover {
  background: var(--yellow-bright);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 168, 40, 0.38);
}

.alh-btn:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   LUMINOUS WHITE & YELLOW FOOTER (NEVER DARK)
   ========================================================================== */
.site-footer {
  border-top: 3px solid var(--yellow-logo);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9E6 100%);
  color: var(--ink-soft);
  padding: 2.4rem 1.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.footer-copy a {
  color: var(--yellow-deep);
  font-weight: 700;
}

.footer-copy a:hover {
  color: var(--ink);
}

/* —— Back to Top Button (Logo Yellow) —— */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--yellow-logo);
  color: var(--ink);
  border: 2px solid var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(240, 168, 40, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--yellow-bright);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODERN LIGHTBOX MODAL WITH WHITE & YELLOW CONTROLS
   ========================================================================== */
.alh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.alh-lightbox[hidden] {
  display: none;
}

.alh-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 252, 242, 0.94);
  backdrop-filter: blur(10px);
}

.alh-lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alh-lightbox-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.65rem;
  background: var(--white);
  border: 1.5px solid var(--border-yellow);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
}

.alh-lightbox-counter {
  color: var(--ink);
  font-weight: 700;
  padding-left: 0.4rem;
}

.alh-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.alh-lightbox-btn,
.alh-lightbox-close {
  background: var(--yellow-pale);
  color: var(--ink);
  border: 1.5px solid var(--yellow-logo);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.36rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.alh-lightbox-btn:hover,
.alh-lightbox-close:hover {
  background: var(--yellow-logo);
  color: var(--ink);
}

.alh-lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.alh-lightbox-nav {
  background: var(--yellow-logo);
  color: var(--ink);
  border: 2px solid var(--white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.18s ease;
}

.alh-lightbox-nav:hover {
  background: var(--yellow-bright);
  transform: scale(1.06);
}

.alh-lightbox-nav[hidden] {
  display: none;
}

.alh-lightbox-figure {
  margin: 0;
  text-align: center;
  max-width: calc(100% - 6.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alh-lightbox-img-holder {
  max-width: 84vw;
  max-height: 74vh;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid var(--yellow-logo);
  box-shadow: 0 18px 48px rgba(30, 32, 34, 0.18);
  background: var(--white);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.alh-lightbox-img {
  max-width: 82vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  user-select: none;
}

.alh-lightbox-img.is-zoomed {
  cursor: grab;
}

.alh-lightbox-img.is-dragging {
  cursor: grabbing;
  transition: none;
}

.alh-lightbox-caption {
  margin-top: 0.7rem;
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-yellow);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 68ch;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .alh-lightbox-figure {
    max-width: 100%;
  }
  .alh-lightbox-nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.35rem;
  }
  .alh-lightbox-prev {
    left: 0.25rem;
  }
  .alh-lightbox-next {
    right: 0.25rem;
  }
}
