/* ==========================================================================
   CONSTRUCTORA SUPER NOVA - ESTILOS OFICIALES Y RESPONSIVE
   Diseño arquitectónico, minimalista y corporativo
   ========================================================================== */

:root {
  /* Paleta Corporativa */
  --gold: #D49A24;
  --gold-hover: #BF8717;
  --gold-light: #F7E8C2;
  --gold-glow: rgba(212, 154, 36, 0.28);
  
  --dark-navy: #0E131A;
  --dark-slate: #151D27;
  --dark-surface: #1E2836;
  --dark-card: #18212C;
  
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-white: #FFFFFF;
  
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  
  --border-light: #E2E8F0;
  --border-dark: #2A3649;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 24px rgba(212, 154, 36, 0.25);
  
  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TIPOGRAFÍA Y ELEMENTOS REUTILIZABLES
   ========================================================================== */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--gold);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.section-title.light {
  color: var(--text-white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(212, 154, 36, 0.35);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background-color: rgba(14, 19, 26, 0.65);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(14, 19, 26, 0.9);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER / BARRA DE NAVEGACIÓN
   ========================================================================== */

.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  transition: height 0.3s ease;
}

.main-header.scrolled .header-container {
  height: 70px;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  padding: 11px 22px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Botón menú móvil */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Cajón de navegación móvil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 999;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links .nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.mobile-contact-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 640px;
  height: 82vh;
  max-height: 850px;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
  color: var(--text-white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(14, 19, 26, 0.92) 0%, rgba(14, 19, 26, 0.75) 45%, rgba(14, 19, 26, 0.25) 85%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #E2E8F0;
  margin-bottom: 36px;
  line-height: 1.6;
}

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

/* Barra de valores inferiores derecha */
.hero-values-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(14, 19, 26, 0.85);
  backdrop-filter: blur(10px);
  padding: 14px 36px;
  border-top-left-radius: var(--radius-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #F8FAFC;
  z-index: 3;
}

.hero-values-badge span {
  color: var(--gold);
}

/* ==========================================================================
   SECCIÓN: NUESTROS SERVICIOS
   ========================================================================== */

.services-section {
  padding: 100px 0;
  background-color: #FFFFFF;
}

.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: 60px;
}

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

.service-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 20px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--gold);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 154, 36, 0.4);
}

.service-card:hover::after {
  width: 60%;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-box {
  transform: scale(1.1);
}

.service-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

/* ==========================================================================
   SECCIÓN: PROYECTOS DESTACADOS
   ========================================================================== */

.projects-section {
  padding: 100px 0;
  background-color: #111822;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.projects-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
}

.projects-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projects-info .section-desc {
  color: #94A3B8;
}

.projects-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transition: transform 0.4s ease;
}

.project-card {
  background-color: var(--dark-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-dark);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.project-image-box {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #000;
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image-box img {
  transform: scale(1.08);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(14, 19, 26, 0.75);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 154, 36, 0.3);
}

.project-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.project-category {
  font-size: 0.88rem;
  color: #CBD5E1;
  font-weight: 500;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-top: 4px;
}

.project-location svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

/* Controles de slider para móvil */
.slider-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--dark-card);
  border: 1px solid var(--border-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-arrow:hover {
  background-color: var(--gold);
  border-color: var(--gold);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   SECCIÓN: NOSOTROS
   ========================================================================== */

.about-section {
  padding: 100px 0;
  background-color: #FFFFFF;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--dark-navy);
  color: #FFFFFF;
  padding: 20px 24px;
  max-width: 280px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
}

.about-floating-badge p {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.4;
  text-transform: uppercase;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 16px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   SECCIÓN: CTA INTERMEDIA & CONTACTO RÁPIDO
   ========================================================================== */

.cta-banner {
  position: relative;
  padding: 90px 0 50px;
  background-image: url('../assets/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.75) 0%, rgba(13, 17, 23, 0.9) 100%);
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: #CBD5E1;
  margin-bottom: 32px;
}

.cta-contact-bar {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
}

.contact-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F1F5F9;
  transition: var(--transition);
}

.contact-bar-item:hover {
  color: var(--gold);
}

.contact-bar-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

/* ==========================================================================
   SECCIÓN: CONTACTO & FORMULARIO DETALLADO
   ========================================================================== */

.contact-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-form-box {
  background-color: #FFFFFF;
  padding: 44px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: #F8FAFC;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.channel-card {
  background-color: #FFFFFF;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 154, 36, 0.4);
}

.channel-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: rgba(212, 154, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
}

.channel-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.channel-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.channel-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
}

.channel-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */

.main-footer {
  background-color: #0E131A;
  color: #94A3B8;
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #64748B;
  max-width: 320px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-nav a {
  font-size: 0.92rem;
  color: #94A3B8;
}

.footer-nav a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-motto-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-motto {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  display: inline-block;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--gold);
  color: #FFFFFF;
  transform: translateY(-3px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.82rem;
  color: #64748B;
}

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

.footer-legal-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   MODALES (COTIZADOR Y DETALLE DE PROYECTO)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 19, 26, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.25rem;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--gold);
  color: #FFFFFF;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ADAPTACIONES RESPONSIVE (MÓVIL Y TABLET - EXACTO AL MOCKUP)
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .projects-layout {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .about-layout {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* En versión móvil, tal como se muestra en la captura vertical derecha: */
  .nav-desktop,
  .btn-header-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .header-container {
    height: 70px;
  }
  
  .brand-logo img {
    height: 40px;
  }
  
  /* Hero Mobile */
  .hero-section {
    height: auto;
    min-height: 560px;
    padding: 100px 0 80px;
    text-align: left;
    background-position: center;
  }
  
  .hero-title {
    font-size: 2.35rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-values-badge {
    position: static;
    margin-top: 40px;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 0.72rem;
    letter-spacing: 1px;
    gap: 10px;
  }
  
  /* Servicios Mobile: 3 columnas x 2 filas o 2 columnas x 3 filas */
  .services-section {
    padding: 60px 0;
  }
  
  .services-header {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .service-card {
    padding: 20px 10px 16px;
  }
  
  .service-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }
  
  .service-card-title {
    font-size: 0.75rem;
  }
  
  /* Proyectos Mobile: Carrusel individual con flechas y dots */
  .projects-section {
    padding: 60px 0;
  }
  
  .projects-grid {
    display: flex;
    transition: transform 0.35s ease-in-out;
  }
  
  .project-card {
    min-width: 100%;
    flex-shrink: 0;
  }
  
  .slider-controls {
    display: flex;
  }
  
  .projects-info .btn {
    width: 100%;
    margin-top: 16px;
  }
  
  /* Nosotros Mobile */
  .about-section {
    padding: 60px 0;
  }
  
  .about-visual {
    order: 2;
  }
  
  .about-visual img {
    height: 320px;
  }
  
  .about-content {
    order: 1;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .stat-item {
    align-items: center;
  }
  
  /* CTA Mobile */
  .cta-banner {
    padding: 60px 0 40px;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-subtitle {
    font-size: 1rem;
  }
  
  .cta-banner .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .cta-contact-bar {
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
  }
  
  /* Contacto Mobile */
  .contact-section {
    padding: 60px 0;
  }
  
  .contact-form-box {
    padding: 24px 18px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .footer-brand img {
    margin: 0 auto 16px;
  }
  
  .footer-tagline {
    margin: 0 auto;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
}


/* ==========================================================================
   HERO SLIDER COMPONENT (INICIO DINÁMICO)
   ========================================================================== */

.hero-slider-container {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: 85vh;
  max-height: 850px;
  overflow: hidden;
  background-color: #0E131A;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 1.2s ease-out;
  transform: scale(1.04);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slider-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.hero-slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.hero-slide-dot.active {
  background-color: var(--gold);
  width: 32px;
  border-radius: 6px;
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(14, 19, 26, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.hero-nav-arrow:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

.hero-nav-arrow.prev { left: 24px; }
.hero-nav-arrow.next { right: 24px; }

/* ==========================================================================
   CATÁLOGO DE PROPIEDADES Y CONTROLES DE VISTA
   ========================================================================== */

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 36px 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94A3B8;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--gold);
  color: #FFFFFF;
  border-color: var(--gold);
}

.view-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  cursor: pointer;
  transition: var(--transition);
}

.view-btn.active,
.view-btn:hover {
  background-color: var(--gold);
  color: #FFFFFF;
}

.view-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Badges de estado en catálogo */
.property-status-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tag-disponible {
  background-color: #059669;
  color: #FFFFFF;
}

.tag-apartada {
  background-color: #D97706;
  color: #FFFFFF;
  border: 1.5px solid #FDE68A;
  animation: pulse-glow 2s infinite;
}

.tag-en_construccion {
  background-color: #2563EB;
  color: #FFFFFF;
}

.tag-vendida {
  background-color: #4B5563;
  color: #E5E7EB;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* VISTA LISTA DE PROPIEDADES */
.catalog-list-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.property-list-card {
  background-color: var(--dark-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.property-list-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.property-list-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
}

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

.property-list-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #94A3B8;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spec-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
}

.property-list-action {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  border-left: 1px solid var(--border-dark);
}

.property-price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}

/* MODAL DE FICHA TÉCNICA DE PROPIEDAD */
.modal-gallery-main {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #000000;
  margin-bottom: 12px;
  position: relative;
}

.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

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

.specs-grid-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background-color: #F8FAFC;
  padding: 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.specs-grid-item {
  display: flex;
  flex-direction: column;
}

.specs-grid-item .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.specs-grid-item .val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.features-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.feature-tag {
  background-color: rgba(212, 154, 36, 0.12);
  color: #92650E;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-embed-wrapper {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 240px;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .hero-nav-arrow {
    display: none;
  }
  .property-list-card {
    grid-template-columns: 1fr;
  }
  .property-list-img {
    height: 180px;
  }
  .property-list-action {
    border-left: none;
    border-top: 1px solid var(--border-dark);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .modal-gallery-main {
    height: 240px;
  }
}


/* ==========================================================================
   MEJORAS DE DISEÑO ARQUITECTÓNICO ULTRA-PREMIUM (2026 EDITION)
   ========================================================================== */

/* Barra de progreso animada para el Hero Slider */
.hero-slider-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #D49A24, #F5CE66, #D49A24);
  width: 0%;
  z-index: 15;
  transition: width 0.1s linear;
}

/* Efecto Ken Burns cinemático para diapositivas activas */
.hero-slide.active {
  animation: ken-burns-zoom 7s ease-out forwards;
}

@keyframes ken-burns-zoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

/* Tarjetas de servicios elevadas */
.service-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  padding: 38px 24px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 154, 36, 0.5);
  box-shadow: 0 20px 35px rgba(212, 154, 36, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  background: #FAF7F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 154, 36, 0.2);
}

.service-card:hover .service-icon-box {
  background: #FFFDF8;
  border-color: var(--gold);
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 18px rgba(212, 154, 36, 0.2);
}

/* Tarjetas de proyectos del catálogo mejoradas */
.project-card {
  background: #141A23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 154, 36, 0.25);
}

.project-image-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 26, 35, 0.95) 100%);
  pointer-events: none;
}

/* Botón flotante para contacto rápido (WhatsApp y Teléfono) */
.floating-contact-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 990;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.float-btn.whatsapp {
  background-color: #25D366;
}

.float-btn.phone {
  background-color: var(--gold);
}

.float-btn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.float-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Tooltip al pasar el cursor en desktop */
.float-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 66px;
  background: rgba(14, 19, 26, 0.9);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.float-btn:hover::before {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .floating-contact-bubble {
    bottom: 18px;
    right: 18px;
    gap: 10px;
  }
  .float-btn {
    width: 48px;
    height: 48px;
  }
  .float-btn svg {
    width: 22px;
    height: 22px;
  }
  .float-btn::before {
    display: none;
  }
}
