/* ==========================================================================
   CASANUEVA DRYWALL - ESTILO MM BUILDERS (OBSIDIAN & GOLD)
   Paleta: Deep Obsidian (#0f172a), Gold/Amber (#f59e0b), Crisp White (#ffffff)
   ========================================================================== */

:root {
  --gold-primary: #f59e0b;
  --gold-hover: #d97706;
  --gold-light: #fef3c7;
  --gold-glow: 0 8px 25px rgba(245, 158, 11, 0.35);

  --bg-dark-primary: #0f172a;
  --bg-dark-secondary: #1e293b;
  --bg-dark-deep: #080d1a;
  --bg-dark-card: rgba(255, 255, 255, 0.04);

  --bg-light-section: #f8fafc;
  --bg-white: #ffffff;

  --text-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted-dark: #94a3b8;
  --text-muted-light: #64748b;

  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);

  --font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Resets Principales --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark-primary);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font-family: inherit;
}

.text-center {
  text-align: center;
}

.gold-text {
  color: var(--gold-primary) !important;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title-white {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gold {
  background-color: var(--gold-primary);
  color: #0f172a;
  box-shadow: var(--gold-glow);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

.btn-gold-header {
  background-color: var(--gold-primary);
  color: #0f172a;
  font-size: 0.85rem;
  padding: 9px 20px;
}

.btn-gold-header:hover {
  background-color: var(--gold-hover);
}

.btn-outline-hero {
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline-hero:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  font-size: 0.88rem;
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* --- Header / Barra de Navegación --- */
.navbar-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover .brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.45));
}

.brand-text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  text-align: center;
}

.brand-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--gold-primary);
}

.nav-cta-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* --- Hero Section (Seamless Nocturne Architecture & HUD) --- */
.hero-section {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark-primary);
  padding: 160px 0 100px 0;
  overflow: hidden;
}

/* Fondo Arquitectónico Integrado sin Bordes */
.hero-bg-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;
  height: 100%;
  background-image: url('../datos_externos/hero_rooftop_drywall.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 42% center;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 12%, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 12%, black 40%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, #0f172a 0%, #0f172a 28%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.25) 75%, rgba(15, 23, 42, 0.4) 100%),
    linear-gradient(0deg, #0f172a 0%, transparent 12%);
}

.hero-container {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 480px;
  gap: 32px;
}

.hero-text-content {
  max-width: 600px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-headline {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: 1.12rem;
  color: #e2e8f0;
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Espacio HUD y Gatillos Radar */
.hero-hud-space {
  position: relative;
  height: 460px;
  width: 100%;
}

.hud-radar-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hud-radar-badge:hover {
  transform: scale(1.05);
}

.hud-radar-ring {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), inset 0 0 10px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.hud-ring-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 158, 11, 0.6);
  animation: hud-spin-pulse 10s linear infinite;
  pointer-events: none;
}

.hud-ring-core {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: -0.02em;
}

.hud-ring-core i {
  font-size: 1rem;
}

.hud-connector-line {
  position: relative;
  width: 44px;
  height: 1px;
  border-bottom: 2px dotted rgba(245, 158, 11, 0.8);
  flex-shrink: 0;
}

.hud-target-dot {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse-gold 2.2s infinite;
}

.hud-info-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 9px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.12);
  display: flex;
  flex-direction: column;
}

.hud-info-card strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hud-info-card span {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-top: 1px;
}

/* Posiciones Radar */
.hud-pos-roof {
  top: 35px;
  right: 25px;
}

.hud-pos-facade {
  top: 195px;
  right: 45px;
}

.hud-pos-deck {
  bottom: 35px;
  right: 30px;
}

@keyframes hud-spin-pulse {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.85);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* --- Nuestros Servicios (Glassmorphic Cards Centradas & Grid 4) --- */
.services-section {
  background-color: var(--bg-dark-primary);
  padding: 80px 0 95px 0;
}

.services-header-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.services-header-centered .section-title-white {
  margin-bottom: 10px;
}

.section-subtitle-muted {
  font-size: 1.05rem;
  color: var(--text-muted-dark);
  font-weight: 400;
  line-height: 1.5;
}

.text-center {
  text-align: center;
}

/* Fila de 4 Servicios */
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-glass-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.12);
}

/* Caja de Ícono Centrada Arriba */
.service-icon-box-center {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-glass-card:hover .service-icon-box-center {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.service-icon-box-center .service-icon {
  font-size: 1.55rem;
  color: var(--gold-primary);
}

.service-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

/* Panel Desplegable (5 Servicios Restantes) */
.services-more-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.services-more-wrapper.expanded {
  max-height: 1200px;
  opacity: 1;
  margin-top: 20px;
}

.services-grid-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Botón Ver Más / Ver Menos */
.services-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn-outline-gold-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-outline-gold-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.toggle-arrow {
  transition: transform 0.35s ease;
  font-size: 0.85rem;
}

.btn-outline-gold-toggle.active .toggle-arrow {
  transform: rotate(180deg);
}

/* --- Por Qué Elegirnos (Barra de Métricas de Impacto & Confianza) --- */
.why-us-light-section {
  background-color: #ffffff;
  padding: 60px 0 65px 0;
  color: var(--text-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid #e2e8f0;
}

.impact-header-centered {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px auto;
}

.impact-tagline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #d97706;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.impact-heading {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.impact-subheading {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.55;
  font-weight: 400;
}

/* Fila de Métricas Horizontales con Divisores */
.impact-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 44px 30px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.stat-col-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  transition: transform 0.3s ease;
}

.stat-col-card:hover {
  transform: translateY(-4px);
}

.stat-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.stat-col-card:hover .stat-icon-wrap {
  background: #f59e0b;
  color: #0f172a;
  transform: scale(1.1);
}

.stat-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.stat-sublabel {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* --- Nuestros Proyectos (Álbumes Reales de Obras) --- */
.projects-dark-section {
  background-color: var(--bg-dark-secondary);
  padding: 85px 0 95px 0;
}

.projects-header-centered {
  margin-bottom: 36px;
}

.projects-tagline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Barra de Filtros */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.4);
}

.filter-btn.active {
  background: var(--gold-primary);
  color: #0f172a;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Grilla de Álbumes (4 columnas x 2 filas = 8 proyectos principales) */
.projects-albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.projects-more-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.projects-more-wrapper.expanded {
  max-height: 3000px;
  opacity: 1;
  margin-top: 20px;
}

.projects-toggle-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.album-card {
  position: relative;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.album-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.15);
}

.album-cover-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0b0f19;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-card:hover .album-cover-img {
  transform: scale(1.08);
}

/* Insignia de Cantidad de Fotos */
.album-badge-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--gold-primary);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.album-badge-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.album-details {
  padding: 16px 18px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.album-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.album-action-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.album-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.album-card:hover .album-action-icon {
  transform: translateX(3px);
  background: var(--gold-primary);
  color: #0f172a;
}

/* ==================== VISOR LIGHTBOX DE ALTA DEFINICIÓN ==================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px 24px;
}

/* Barra Superior */
.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.lightbox-project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-top: 2px;
  display: block;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.05);
}

/* Escenario Central */
.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin: 12px 0;
}

.lightbox-media-wrapper {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  user-select: none;
  transition: transform 0.2s ease;
}

.lightbox-nav-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 5;
  flex-shrink: 0;
}

.lightbox-nav-btn:hover {
  background: var(--gold-primary);
  color: #0f172a;
  border-color: var(--gold-primary);
  transform: scale(1.1);
}

/* Tira de Miniaturas */
.lightbox-thumbnails-tray {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) rgba(255, 255, 255, 0.05);
}

.lightbox-thumb {
  width: 60px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lightbox-thumb:hover {
  opacity: 0.85;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

/* --- Testimonios de Clientes --- */
.testimonials-section {
  background-color: var(--bg-dark-primary);
  padding: 85px 0;
}

.testimonials-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 40px;
}

.testimonials-cards-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-glass-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.avatar-testimonial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.client-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.client-role {
  font-size: 0.8rem;
  color: var(--gold-primary);
}

.testimonial-quote {
  font-size: 0.86rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.45;
}

.testimonials-arch-img-col {
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-cta-center {
  text-align: center;
}

/* --- Banner Final CTA --- */
.bottom-cta-banner {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding: 80px 24px;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 28px;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--bg-dark-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 0 24px 0;
}

.footer-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  max-width: 320px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 6px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted-dark);
  margin-top: 4px;
  line-height: 1.4;
}

.footer-links-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links-box a {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links-box a:hover {
  color: var(--gold-primary);
}

.footer-social-row {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--gold-primary);
  color: #0f172a;
  transform: translateY(-2px);
}

.footer-bottom-line {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #64748b;
}

/* --- Botón Flotante Linktree --- */
.floating-redes-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gold-primary);
  color: #0f172a;
  padding: 12px 22px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
  z-index: 999;
  transition: all 0.25s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-redes-trigger:hover {
  background: var(--gold-hover);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.55);
}

/* --- Modales Generales --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-sm);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.8);
  border: none;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #0f172a;
  color: #ffffff;
}

/* Linktree Modal (#redes) - Estilo Fit With Sarah Dark Luxury */
.linktree-modal-box {
  max-width: 440px;
  padding: 40px 24px 30px 24px;
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.98) 75%), #0f172a;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.12);
  color: #ffffff;
}

.linktree-modal-box .modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.linktree-modal-box .modal-close-btn:hover {
  background: var(--gold-primary);
  color: #0f172a;
}

.linktree-avatar-box {
  width: 94px;
  height: 94px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  padding: 4px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
}

.linktree-avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: #0f172a;
}

.linktree-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.linktree-brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.linktree-badge-check {
  color: var(--gold-primary);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

.linktree-tagline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.linktree-bio {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 26px;
  line-height: 1.45;
  padding: 0 10px;
}

.linktree-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card Button General */
.linktree-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
  border: 1px solid transparent;
}

.linktree-icon-cell {
  width: 36px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.linktree-text-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

.linktree-item-title {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
}

.linktree-item-desc {
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 3px;
}

.linktree-arrow-cell {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.linktree-card-btn:hover .linktree-arrow-cell {
  transform: translateX(3px);
}

/* Botón 1: Primario Destacado en Oro */
.linktree-card-primary {
  background: var(--gold-primary);
  color: #0f172a;
  border-color: #f59e0b;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35);
}

.linktree-card-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.45);
}

.linktree-card-primary .linktree-icon-cell {
  color: #0f172a;
  font-size: 1.5rem;
}

.linktree-card-primary .linktree-item-desc {
  color: #1e293b;
  font-weight: 600;
}

.linktree-card-primary .linktree-arrow-cell {
  color: #0f172a;
}

/* Botones 2 al 6: Secundarios Glassmorphism Oscuro */
.linktree-card-secondary {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.linktree-card-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.linktree-card-secondary .linktree-icon-cell {
  color: var(--gold-primary);
}

.linktree-card-secondary .linktree-item-desc {
  color: #94a3b8;
}

.linktree-card-secondary .linktree-arrow-cell {
  color: #64748b;
}

.linktree-card-secondary:hover .linktree-arrow-cell {
  color: var(--gold-primary);
}

.linktree-footer-brand {
  margin-top: 24px;
  font-size: 0.72rem;
  color: #64748b;
  letter-spacing: 0.04em;
}

/* Portfolio Modal */
.portfolio-modal-box {
  max-width: 860px;
  padding: 32px;
}

.portfolio-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.port-modal-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.port-modal-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.port-modal-info {
  padding: 14px;
}

.port-modal-info h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.port-modal-info p {
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

/* CMS Admin Modal */
.admin-modal-content {
  max-width: 900px;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 520px;
  padding: 0;
}

.admin-sidebar {
  background: #0f172a;
  padding: 28px 18px;
  color: #ffffff;
}

.admin-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.admin-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.admin-nav-btn.active, .admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-primary);
}

.admin-main {
  padding: 32px;
  overflow-y: auto;
  color: var(--text-dark);
}

.admin-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.admin-form-group {
  margin-bottom: 16px;
}

.admin-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.admin-input, .admin-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.admin-table th, .admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}

.admin-table th {
  background: #f8fafc;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
}

/* --- Media Queries (Responsivo) --- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-text-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-actions-row {
    justify-content: center;
  }
  .hero-bg-image {
    width: 100%;
    opacity: 0.3;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-hud-space {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 460px;
    margin: 20px auto 0 auto;
  }
  .hud-radar-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
  }
  .hud-connector-line {
    display: none;
  }
  .hud-info-card {
    flex: 1;
  }
  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid-more {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-albums-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .impact-stats-row {
    flex-wrap: wrap;
    gap: 28px 0;
  }
  .stat-col-card {
    flex: 0 0 50%;
  }
  .stat-divider {
    display: none;
  }
  .admin-modal-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 60px 0;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 75px;
    left: 20px;
    right: 20px;
    background: #0f172a;
    padding: 20px;
    border-radius: var(--radius-sm);
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-headline {
    font-size: 2.1rem;
  }
  .services-grid-4, .services-grid-more, .projects-albums-grid {
    grid-template-columns: 1fr;
  }
  .impact-stats-row {
    flex-direction: column;
    gap: 32px;
    padding: 32px 20px;
  }
  .stat-col-card {
    flex: 0 0 100%;
    width: 100%;
  }
  .footer-content-row {
    flex-direction: column;
    text-align: center;
  }
}
