/*
Theme Name: SOS Ascensores Históricos
Theme URI: https://sosascensoreshistoricos.com
Author: SOS Ascensores Históricos
Description: Custom theme for SOS Ascensores Históricos — preserving the historical elevators of San Sebastián.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: sos-ascensores
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --gold: #c8a96e;
  --gold-light: #e8d5a8;
  --cream: #f9f6f0;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --max: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(6px);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-logo span { color: var(--white); font-weight: 400; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a { color: var(--gold); }

.nav-cta a {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.nav-cta a:hover { background: var(--gold-light) !important; }

/* ── SHARED ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 1.2rem;
}
.ornament::before, .ornament::after {
  content: ''; display: block; width: 60px; height: 1px;
  background: var(--gold); opacity: 0.6;
}
.ornament-diamond {
  width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg); opacity: 0.8;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; color: var(--navy);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(to bottom, rgba(10,18,38,0.72) 0%, rgba(10,18,38,0.45) 60%, rgba(10,18,38,0.75) 100%),
    url('https://sosascensoreshistoricos.com/wp-content/uploads/2026/01/ascensor.avif') center center / cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 6rem;
  position: relative;
}

.hero-tag {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700;
  color: var(--white); line-height: 1.15;
  max-width: 780px; margin-bottom: 1.4rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85); max-width: 560px;
  margin-bottom: 2.5rem; font-weight: 300;
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.5); font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 36px;
  background: rgba(255,255,255,0.35); margin-top: 0.3rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2.8rem; border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block; border: 1.5px solid var(--navy); color: var(--navy);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.8rem 2.2rem; border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-outline {
  display: inline-block; border: 1.5px solid var(--navy); color: var(--navy);
  font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 0.8rem 2.4rem; border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── MISSION ── */
.mission { background: var(--cream); padding: 6rem 2rem; }

.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.mission-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600;
  color: var(--navy); margin-bottom: 1.5rem;
}
.mission-text p {
  color: var(--text-light); margin-bottom: 1.2rem;
  font-size: 1.05rem; line-height: 1.8;
}
.mission-text p:last-of-type { margin-bottom: 2rem; }

.mission-image {
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15); position: relative;
}
.mission-image img {
  width: 100%; height: 480px; object-fit: cover; display: block;
}
.mission-image::before {
  content: ''; position: absolute;
  top: -12px; left: -12px; right: 12px; bottom: 12px;
  border: 1.5px solid var(--gold); border-radius: 3px; z-index: -1; opacity: 0.5;
}

/* ── VIDEO ── */
.video-section { background: var(--navy); padding: 6rem 2rem; text-align: center; }
.video-section .section-header h2 { color: var(--white); }

.video-wrapper {
  max-width: 820px; margin: 0 auto; border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  border: 1px solid rgba(200,169,110,0.2);
  position: relative; padding-bottom: 46.15%; height: 0; overflow: hidden;
}
.video-wrapper video,
.video-wrapper iframe,
.video-responsive,
.video-responsive iframe {
  position: absolute !important; top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  border: none; display: block; background: #000;
}

/* ── NEWS GRID ── */
.news-section { background: var(--cream); padding: 6rem 2rem; }

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.news-card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.news-card-img { position: relative; overflow: hidden; height: 200px; }
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-img.audio-card {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%);
  display: flex; align-items: center; justify-content: center;
}

.media-icons {
  position: absolute; bottom: 0.8rem; left: 0.8rem; display: flex; gap: 0.4rem;
}
.media-icon {
  background: rgba(10,18,38,0.75); backdrop-filter: blur(4px);
  color: var(--gold-light); width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
}

.news-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.news-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.news-date {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.news-category { font-size: 0.7rem; color: #aaa; letter-spacing: 0.08em; text-transform: uppercase; }

.news-card-body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600;
  color: var(--navy); line-height: 1.4; margin-bottom: 0.6rem; flex: 1;
}
.news-card-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }

.read-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
  transition: color 0.2s; align-self: flex-start;
}
.read-more:hover { color: var(--gold); }

.view-all-wrap { text-align: center; margin-top: 3rem; }

/* ── AUDIO WAVE ANIMATION ── */
.audio-wave { display: flex; align-items: center; gap: 4px; }
.audio-wave span {
  display: block; width: 4px; background: var(--gold);
  border-radius: 2px; opacity: 0.8; animation: wave 1.2s ease-in-out infinite;
}
.audio-wave span:nth-child(1) { height: 20px; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 36px; animation-delay: 0.15s; }
.audio-wave span:nth-child(3) { height: 28px; animation-delay: 0.3s; }
.audio-wave span:nth-child(4) { height: 44px; animation-delay: 0.45s; }
.audio-wave span:nth-child(5) { height: 32px; animation-delay: 0.6s; }
.audio-wave span:nth-child(6) { height: 20px; animation-delay: 0.75s; }
@keyframes wave {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.4); opacity: 1; }
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%);
  text-align: center; padding: 5rem 2rem;
}
.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--white); margin-bottom: 1rem;
}
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2rem; }

/* ── ARCHIVE PAGE ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #263a62 100%);
  padding: 8rem 2rem 4rem; text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; color: var(--white);
  margin-bottom: 0.8rem;
}
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; }

.archive-section { background: var(--cream); padding: 5rem 2rem; }

.archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
}

.archive-card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07); text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column;
}
.archive-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.archive-card .news-card-img { height: 220px; }
.archive-card .news-card-body h3 { font-size: 1.1rem; }

.pagination {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 3.5rem; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 2px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  border: 1.5px solid #ddd; color: var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── SINGLE POST ── */
.post-hero { position: relative; height: 480px; overflow: hidden; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,18,38,0.88) 0%, rgba(10,18,38,0.2) 65%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem;
}
.post-hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--white);
  line-height: 1.2; max-width: 820px;
}
.post-hero-overlay .news-meta { margin-bottom: 0.6rem; }
.post-hero-overlay .news-date { color: var(--gold-light); }
.post-hero-overlay .news-category { color: rgba(255,255,255,0.5); }

.post-body { padding: 4rem 2rem; background: var(--white); }
.post-content { max-width: 720px; margin: 0 auto; }

.post-content p {
  font-size: 1.08rem; color: var(--text); line-height: 1.85; margin-bottom: 1.4rem;
}
.post-content p:first-child::first-letter {
  font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700;
  color: var(--navy); float: left; line-height: 0.85; margin: 0.1em 0.12em 0 0;
}
.post-content h2 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600;
  color: var(--navy); margin: 2rem 0 0.8rem;
}

.post-image { margin: 2.5rem 0; border-radius: 4px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.12); }
.post-image img { width: 100%; display: block; }
.post-image figcaption {
  font-size: 0.82rem; color: #999; padding: 0.6rem 1rem;
  background: var(--cream); font-style: italic;
}

.post-video { margin: 2.5rem 0; }
.post-video-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.post-video-label::before {
  content: ''; display: block; width: 4px; height: 16px;
  background: var(--gold); border-radius: 2px;
}
.post-video-wrapper { border-radius: 4px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.15); background: #000; }
.post-video-wrapper video { width: 100%; display: block; }

.post-audio {
  margin: 2.5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, #263a62 100%);
  border-radius: 8px; padding: 1.8rem 2rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.post-audio-label {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--gold); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.post-audio-label svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }
.post-audio-title {
  color: var(--white); font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600; line-height: 1.3;
}
.post-audio-source { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.post-audio audio { width: 100%; accent-color: var(--gold); border-radius: 4px; }

.post-quote { margin: 2.5rem 0; border-left: 4px solid var(--gold); padding: 1rem 2rem; background: var(--cream); border-radius: 0 4px 4px 0; }
.post-quote blockquote { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-style: italic; color: var(--navy); line-height: 1.5; }
.post-quote cite { display: block; margin-top: 0.6rem; font-size: 0.82rem; color: #999; font-style: normal; }

.post-footer-bar { padding: 2rem; background: var(--cream); border-top: 1px solid #e8e0d4; }
.post-footer-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 14px; height: 14px; fill: currentColor; }

/* ── FOOTER ── */
.site-footer { background: #0e1728; color: rgba(255,255,255,0.55); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold); font-weight: 700; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-links { display: flex; gap: 2rem; font-size: 0.8rem; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.07); }
.footer-email a { color: rgba(255,255,255,0.6) !important; font-size: 0.9rem; text-decoration: none !important; transition: color 0.2s; }
.footer-email a:hover { color: var(--gold) !important; }

/* ── ELEVATOR CATALOG ── */
.elevators-section { background: var(--cream); padding: 5rem 2rem; }

.elevator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.elevator-card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.elevator-card:hover { transform: translateY(-5px); box-shadow: 0 14px 44px rgba(0,0,0,0.13); }

.elevator-card-thumb {
  position: relative; height: 240px; overflow: hidden; background: #c8c0b4;
}
.elevator-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s;
}
.elevator-card:hover .elevator-card-thumb img { transform: scale(1.06); }

/* gradient placeholder when no image */
.elevator-card-thumb.no-photo {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%);
  display: flex; align-items: center; justify-content: center;
}
.elevator-card-thumb.no-photo svg { width: 56px; height: 56px; opacity: 0.25; fill: var(--white); }

.elevator-badges {
  position: absolute; bottom: 0.7rem; right: 0.7rem;
  display: flex; gap: 0.4rem; align-items: center;
}
.elevator-badge {
  background: rgba(10,18,38,0.78); backdrop-filter: blur(4px);
  color: var(--gold-light); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 0.25rem 0.55rem; border-radius: 2px;
  display: flex; align-items: center; gap: 0.3rem;
}
.elevator-badge svg { width: 10px; height: 10px; fill: currentColor; flex-shrink: 0; }

.elevator-card-num {
  position: absolute; top: 0.7rem; left: 0.7rem;
  font-family: 'Playfair Display', serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); background: rgba(10,18,38,0.72); backdrop-filter: blur(4px);
  padding: 0.25rem 0.65rem; border-radius: 2px;
}

.elevator-card-body { padding: 1.2rem 1.4rem 1.4rem; }
.elevator-card-body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.45rem; line-height: 1.35;
}
.elevator-card-body p {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.6;
  margin-bottom: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.elevator-view-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
  transition: color 0.2s;
}
.elevator-card:hover .elevator-view-btn { color: var(--gold); }

/* ── ELEVATOR LIGHTBOX ── */
.elev-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,14,30,0.94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.elev-overlay.is-open { display: flex; }

.elev-modal {
  background: var(--white); border-radius: 6px; overflow: hidden;
  width: 100%; max-width: 960px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 100px rgba(0,0,0,0.6);
  animation: elevSlideUp 0.3s ease;
}
@keyframes elevSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.elev-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem; border-bottom: 1px solid #ede9e1; flex-shrink: 0;
}
.elev-modal-title {
  font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; color: var(--navy);
}
.elev-modal-meta { font-size: 0.75rem; color: #aaa; margin-top: 0.1rem; }
.elev-close {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: #f0ebe2; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--navy);
  transition: background 0.2s; flex-shrink: 0;
}
.elev-close:hover { background: #e0d8ca; }

.elev-modal-body { overflow-y: auto; flex: 1; }

/* Gallery pane */
.elev-gallery { position: relative; background: #111; }
.elev-slides { position: relative; }
.elev-slide { display: none; }
.elev-slide.is-active { display: block; }
.elev-slide img {
  width: 100%; max-height: 460px; object-fit: contain; display: block; background: #111;
}

.elev-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; width: 100%; pointer-events: none;
  padding: 0 0.6rem;
}
.elev-nav button {
  pointer-events: all; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10,18,38,0.65); backdrop-filter: blur(4px);
  border: none; color: var(--white); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.elev-nav button:hover { background: rgba(10,18,38,0.9); }
.elev-nav button:disabled { opacity: 0.2; pointer-events: none; }

.elev-dots {
  display: flex; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 1rem; background: #111;
}
.elev-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25);
  border: none; cursor: pointer; padding: 0; transition: background 0.2s;
}
.elev-dot.is-active { background: var(--gold); }

/* Thumbnails strip */
.elev-thumbs {
  display: flex; gap: 0.5rem; padding: 0.75rem 1rem;
  overflow-x: auto; background: #0e0e18;
  scrollbar-width: thin; scrollbar-color: rgba(200,169,110,0.3) transparent;
}
.elev-thumb {
  flex-shrink: 0; width: 72px; height: 54px; border-radius: 3px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
}
.elev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.elev-thumb.is-active { border-color: var(--gold); opacity: 1; }

/* Video inside modal */
.elev-video { padding: 1.2rem 1.4rem 0; }
.elev-video-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.6rem;
}
.elev-video-label::before {
  content: ''; display: block; width: 3px; height: 14px;
  background: var(--gold); border-radius: 2px;
}
.elev-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 4px; background: #000;
}
.elev-video-wrap iframe, .elev-video-wrap video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* Text inside modal */
.elev-text { padding: 1.4rem; font-size: 0.98rem; color: var(--text-light); line-height: 1.8; }
.elev-text p + p { margin-top: 0.9rem; }

/* single-image: hide nav/dots/thumbs */
.elev-single .elev-nav,
.elev-single .elev-dots,
.elev-single .elev-thumbs { display: none; }

@media (max-width: 640px) {
  .elevator-grid { grid-template-columns: 1fr; }
  .elev-modal { max-height: 95vh; }
  .elev-slide img { max-height: 260px; }
}

/* ── LEGAL PAGES ── */
.legal-body { background: var(--white) !important; padding: 4rem 2rem 6rem !important; }
.legal-content {
  max-width: 760px; margin: 0 auto; padding: 0 1rem;
  font-size: 1.02rem; line-height: 1.85; color: var(--text);
}
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  font-family: 'Playfair Display', serif !important;
  color: var(--navy) !important;
  margin: 2.2rem 0 0.8rem !important;
  line-height: 1.3;
}
.legal-content h2 { font-size: 1.15rem !important; font-weight: 700 !important; border-bottom: 1px solid rgba(200,169,110,0.3); padding-bottom: 0.4rem; }
.legal-content p { margin-bottom: 1.2rem !important; }
.legal-content ul, .legal-content ol { padding-left: 1.6rem !important; margin-bottom: 1.2rem !important; }
.legal-content ul li, .legal-content ol li { margin-bottom: 0.6rem !important; }
.legal-content strong { color: var(--navy); }
.legal-content a { color: var(--navy) !important; }
.legal-content a:hover { color: var(--gold) !important; }
.legal-content .legal-intro {
  background: var(--cream); border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem; border-radius: 0 4px 4px 0; margin-bottom: 2rem;
  font-size: 0.92rem; line-height: 1.7;
}

/* ── BURGER BUTTON ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
/* X state */
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .archive-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Show burger, hide desktop menu */
  .nav-burger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(20, 32, 60, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(200,169,110,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 99;
  }
  .nav-menu.nav-open { display: flex; }
  .nav-menu li { display: block; }
  .nav-menu a {
    display: block;
    padding: 0.9rem 1.8rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-menu li:last-child a { border-bottom: none; }
  /* Firmar button full-width on mobile */
  .nav-cta a {
    margin: 0.5rem 1.8rem 0;
    display: block;
    text-align: center;
    padding: 0.7rem 1rem !important;
  }

  /* Tighter side padding on mobile */
  .container { padding: 0 1rem; }
  .mission { padding: 3.5rem 1rem; }
  .video-section { padding: 3.5rem 1rem; }
  .news-section { padding: 3.5rem 1rem; }
  .cta-banner { padding: 3rem 1rem; }
  .archive-section { padding: 3rem 1rem; }
  .page-hero { padding: 6rem 1rem 3rem; }
  .post-body { padding: 2.5rem 1rem; }
  .post-footer-bar { padding: 1.5rem 1rem; }

  .mission-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mission-image { order: -1; }
  .mission-image img { height: 280px; }
  .archive-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
  .post-footer-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .post-hero { height: 320px; }
  .post-hero-overlay { padding: 1.2rem 1rem; }
}
