/* ==========================================================================
   LUXBAU INTERNATIONAL - ARCHITECTURAL DESIGN SYSTEM
   Hoja de estilos principal estructurada según especificaciones del proyecto
   ========================================================================== */
/* ==========================================================================
   1. VARIABLES GLOBALES (:root)
   ========================================================================== */
   
/* Escala visual de la página */
body {
    zoom: 80%;
}

:root {
  /* --- Colores de Marca y Funcionales --- */
  /* Negro Carbón (Fondos oscuros, textos primarios en claros, estructura) */
  --color-carbon: #101214;
  --color-carbon-deep: #0a0b0d;
  --color-carbon-surface: #181b1e;
  --color-carbon-border: #262a2e;
  --color-carbon-overlay: rgba(16, 18, 20, 0.75); /* 75% transparencia requerida */

  /* Blanco y Neutros Arquitectónicos */
  --color-white: #ffffff;
  --color-offwhite: #f8f9fa;
  --color-surface-light: #f1f3f5;
  --color-border-light: #e5e8eb;
  --color-border-subtle: #d3d7dc;

  /* Azul Petróleo (Secundario principal y celeste derivado para fondos oscuros) */
  --color-petrol: #0e3846;
  --color-petrol-hover: #144e62;
  --color-petrol-light: #3a8ba8;   /* Celeste derivado / acento contrastante */
  --color-petrol-glow: rgba(58, 139, 168, 0.25);
  --color-petrol-soft: #e5f1f6;

  /* Verde Oliva (Secundario complementario para detalles arquitectónicos) */
  --color-olive: #566738;
  --color-olive-hover: #657a42;
  --color-olive-light: #8da06b;
  --color-olive-soft: #edf2e6;
  --color-olive-glow: rgba(86, 103, 56, 0.25);

  /* Textos y Contrastes */
  --color-text-dark: #121417;
  --color-text-muted-dark: #636b75;
  --color-text-light: #f5f7f9;
  --color-text-muted-light: #9ea7b0;

  /* --- Tipografías y Escala Tipográfica --- */
  --font-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.35rem;    /* 21.6px */
  --text-2xl: 1.85rem;   /* 29.6px */
  --text-3xl: 2.6rem;    /* 41.6px */
  --text-4xl: 3.75rem;   /* 60px */

  /* --- Espaciados --- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-8: 3rem;      /* 48px */
  --space-10: 4.5rem;   /* 72px */
  --space-12: 6.5rem;   /* 104px */

  /* --- Anchos de Contenedor --- */
  --container-max: 1320px;
  --container-narrow: 1040px;
  --container-full: 100%;

  /* --- Radios de Borde (Cuadrado y Elegante como especificado) --- */
  --radius-square: 0px; /* Rigor geométrico puro */
  --radius-subtle: 2px;

  /* --- Sombras --- */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 25px 60px rgba(0, 0, 0, 0.35);

  /* --- Transiciones --- */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset para navegación pegajosa */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, video {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   3. TIPOGRAFÍA Y JERARQUÍA
   ========================================================================== */
.heading {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-text-dark);
}

.heading-1 {
  font-size: clamp(2rem, 5.2vw, var(--text-4xl));
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heading-2 {
  font-size: clamp(1.6rem, 3.2vw, var(--text-3xl));
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.heading-3 {
  font-size: var(--text-xl);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.text {
 font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

.text-1 {
  font-size: clamp(1rem, 1.25vw, var(--text-lg));
  font-weight: 300;
  color: var(--color-text-muted-dark);
}

.text-2 {
  font-size: var(--text-base);
  color: var(--color-text-muted-dark);
}

.text-3 {
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

/* Separadores y etiquetas decorativas */
.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-petrol-light);
  margin-bottom: var(--space-3);
}

.separator-line-olive {
  width: 60px;
  height: 2px;
  background-color: var(--color-olive);
  margin: var(--space-4) auto var(--space-6);
}

.separator-line-petrol {
  width: 60px;
  height: 2px;
  background-color: var(--color-petrol);
  margin: var(--space-4) auto var(--space-6);
}

/* ==========================================================================
   4. CONTENEDORES Y ESTRUCTURA DE RETÍCULA
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-1 {
  max-width: 100%;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-2 {
  max-width: var(--container-narrow);
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  position: relative;
}

.section-dark {
  background-color: var(--color-carbon);
  color: var(--color-text-light);
}

.section-dark .text-1,
.section-dark .text-2 {
  color: var(--color-text-muted-light);
}

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

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

.section-header-centered {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-8);
}

.section-header-compact {
  margin-bottom: var(--space-6);
}

.header-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--color-carbon-border);
  padding-bottom: var(--space-4);
}

.header-right-note {
  max-width: 380px;
  text-align: right;
  font-size: var(--text-sm);
}

/* Filas y Columnas */
.row {
  display: flex;
  flex-wrap: wrap;
}

.row-1 {
  /* Distribución bipartita 50 / 50 */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.row-2 {
  /* Cuadrícula de 4 elementos casi juntos y cuadrados */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; /* Mínima separación según wireframe */
}

.row-3 {
  /* Distribución de 3 columnas */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ==========================================================================
   5. COMPONENTES REUTILIZABLES
   ========================================================================== */

/* --- Iconos --- */
.icon {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-md {
  width: 24px;
  height: 24px;
}

/* --- Botones Cuadrados y Elegantes --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-square);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.button-square {
  border-radius: 0px !important;
}

/* Variante 1: Primario Carbon / Petrol */
.button-1 {
  background-color: var(--color-petrol);
  color: var(--color-white);
  border: 1px solid var(--color-petrol);
}

.button-1:hover {
  background-color: var(--color-petrol-hover);
  border-color: var(--color-petrol-hover);
  box-shadow: 0 4px 15px var(--color-petrol-glow);
}

/* Variante 2: Contorno Elegante (Outline) */
.button-2 {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button-2:hover {
  background-color: var(--color-white);
  color: var(--color-carbon);
  border-color: var(--color-white);
}

.section-light .button-2 {
  color: var(--color-carbon);
  border-color: var(--color-carbon);
}

.section-light .button-2:hover {
  background-color: var(--color-carbon);
  color: var(--color-white);
}

/* Variante 3: Verde Oliva */
.button-3 {
  background-color: var(--color-olive);
  color: var(--color-white);
  border: 1px solid var(--color-olive);
}

.button-3:hover {
  background-color: var(--color-olive-hover);
  border-color: var(--color-olive-hover);
  box-shadow: 0 4px 15px var(--color-olive-glow);
}

.w-100 {
  width: 100%;
}

/* --- Tarjetas (Cards) --- */
.card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-square);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Card 1: Pilares y Servicios */
.card-1 {
  background-color: var(--color-carbon-surface);
  border: 1px solid var(--color-carbon-border);
  padding: var(--space-6);
}

.card-1:hover {
  border-color: var(--color-olive);
  transform: translateY(-4px);
}

/* Card 2: Proyectos Cuadrados */
.card-2 {
  background-color: var(--color-carbon);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1; /* Cuadradas como requerido */
}

/* Card 3: Planos 3D/2D Blueprint */
.card-3 {
  background-color: var(--color-white);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.card-3:hover,
.card-3.active {
  border-color: var(--color-petrol);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   6. ESTILOS ESPECÍFICOS DE LAS SECCIONES
   ========================================================================== */

/* --- TOP UTILITY BAR (Header Superior Accesorio) --- */
.top-bar {
  background-color: var(--color-carbon-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted-light);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-tag {
  letter-spacing: 0.15em;
  color: #8c95a0;
  
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.top-bar-left{
  display: inline-flex;
  gap: 6px;
  color: var(--color-text-muted-light);
  transition: color var(--transition-fast);
}
.top-bar-left:hover {
  color: var(--color-petrol-light);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted-light);
  transition: color var(--transition-fast);
}
.social-link:hover {
  color: var(--color-petrol-light);
}

.social-link .icon {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.social-link:hover .icon {
  opacity: 1;
}

/* Botón Selector de Idioma (EN / ES) */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-square);
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background-color: var(--color-petrol);
  border-color: var(--color-petrol-light);
}

.lang-btn .icon {
  filter: brightness(0) invert(1);
}

.lang-badge {
  background-color: var(--color-olive);
  color: var(--color-white);
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- SITE HEADER & MAIN NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: rgba(16, 18, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-smooth);
}

.site-header.is-scrolled {
  background-color: rgba(10, 11, 13, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

/* Distribución simétrica del menú con logo en el centro */
.nav-group {
  flex: 1;
}

.nav-left .nav-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-5);
}

.nav-right .nav-list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted-light);
  padding: 10px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-petrol-light);
  transition: width var(--transition-fast);
}

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

.nav-link-highlight {
  color: var(--color-olive-light);
}

/* Menú Desplegable (Servicios Dropdown al pasar el cursor) */
.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-icon {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.has-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background-color: var(--color-carbon);
  border: 1px solid var(--color-carbon-border);
  box-shadow: var(--shadow-modal);
  padding: var(--space-2) 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--color-carbon-surface);
}

.dropdown-link strong {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.dropdown-desc {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted-light);
  line-height: 1.35;
}

/* Logo de la empresa en el centro */
.site-branding {
  text-align: center;
  padding: 0 var(--space-4);
}

.brand-link {
  display: inline-block;
  width: 100px;
  height: auto;
  max-width: 100%;
}

.brand-logo {
  height: 99px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-bar {
  width: 28px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--color-carbon);
  z-index: 2000;
  border-left: 1px solid var(--color-carbon-border);
  box-shadow: var(--shadow-modal);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
}

.mobile-drawer.is-active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-carbon-border);
  padding-bottom: var(--space-4);
}

.mobile-drawer .brand-logo-sm {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.drawer-close-btn {
  padding: 8px;
}

.drawer-close-btn .icon {
  filter: brightness(0) invert(1);
}

.mobile-nav-list {
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mobile-nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-group-title {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-petrol-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

.mobile-subnav-list {
  padding-left: var(--space-3);
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-subnav-list .mobile-nav-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted-light);
}

.lang-btn-mobile {
  width: 100%;
  padding: 12px;
  justify-content: center;
  margin-top: var(--space-4);
}

/* --- SECTION 1: HERO --- */
.section-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  padding: var(--space-12) 0 var(--space-10);
  background-color: var(--color-carbon);
}

.hero-media-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; /* keeps the architecture on the left */
}

.hero-fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: none;
}

/* Gradient: clear on the left, dark on the right behind the text */
.hero-overlay-75 {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(10, 14, 18, 0.92) 0%,
    rgba(10, 14, 18, 0.78) 35%,
    rgba(10, 14, 18, 0.25) 65%,
    rgba(10, 14, 18, 0) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: none;
  padding-inline: clamp(24px, 6vw, 96px);
  text-align: right;
}

.hero-content {
  max-width: 600px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Kicker */
.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.kicker-line {
  width: 36px;
  height: 1px;
  background-color: var(--color-olive-light);
}

.kicker-line:first-child {
  display: none; /* single line, next to the right edge */
}

.kicker-text {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-olive-light);
}

/* Title */
.hero-title {
  color: var(--color-white);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: var(--space-5);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Description with accent bar on the right edge */
.hero-description {
  max-width: 480px;
  margin: 0 0 var(--space-8) auto;
  padding-right: var(--space-4);
  border-right: 2px solid var(--color-olive-light);
  color: #d5dbe3;
  font-weight: 300;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.hero-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* Spec strip: single compact row, right-aligned */
.hero-spec-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-3);
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.spec-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-petrol-light);
}

.spec-value {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-white);
  white-space: nowrap;
}

.spec-divider {
  display: block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
}

/* Narrow screens: go back to a compact stack */
@media (max-width: 900px) {
  .hero-spec-strip {
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
  }
  .spec-item { align-items: flex-end; }
  .spec-divider { display: none; }
}

/* Scroll indicator moved to the bottom right */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  right: clamp(24px, 6vw, 96px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--color-text-muted-light);
    left: 50%;
  right: auto;               /* cancel the old right offset */
  transform: translateX(-50%);
  
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 9px;
  position: relative;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background-color: var(--color-olive-light);
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelAnim 1.8s infinite;
}

@keyframes wheelAnim {
  0%   { transform: translate(-50%, 0); opacity: 2; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

.scroll-text {
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 600;
}

/* Mobile: text over the full image, so the overlay covers everything */
@media (max-width: 768px) {
  .hero-overlay-75 {
    background: linear-gradient(
      to top,
      rgba(10, 14, 18, 0.9) 0%,
      rgba(10, 14, 18, 0.6) 100%
    );
  }
  .hero-scroll-indicator { display: none; }
}
/* --- SECTION 2: ABOUT US (Sobre Nosotros) --- */
.section-about {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 46vw, 700px);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-carbon-border);
  border-bottom: 1px solid var(--color-carbon-border);
}

/* ---------- Text column ---------- */
.about-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--color-olive);
  margin-bottom: var(--space-5);
}
.about-eyebrow::after {
  content: "";
  width: 180px;
  height: 1px;
  background: var(--color-olive);
  opacity: 0.7;
}

.about-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}
.about-title-accent {
  color: var(--color-olive);
}

.about-statement {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: #e4e7eb;
  margin-bottom: var(--space-6);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-white);
  text-decoration: none;
  border-bottom: 2px solid var(--color-olive);
  transition: gap 0.25s ease, color 0.25s ease;
}
.about-link:hover {
  gap: var(--space-4);
  color: var(--color-olive);
}


/* ---------- Image with slanted edges ---------- */
.about-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
}

.about-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fills the area with any image */
  object-position: center;     /* adjust the focus point if needed */
  clip-path: polygon(37% 0, 95% 0, 64% 100%, 3% 100%);
}

/* Fade the left edge of the image into the dark background */
.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 15, 18, 0.9) 0%, transparent 45%);
  clip-path: polygon(37% 0, 95% 0, 64% 100%, 3% 100%);
}

/* Thin white diagonal accent line */
.about-media-line {
  position: absolute;
  top: 18%;
  right: 6%;
  z-index: 2;
  width: 2px;
  height: 42%;
  background: linear-gradient(to bottom, #fff, transparent);
  transform: rotate(28deg);
  transform-origin: top center;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .section-about {
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--space-8);
  }
  .about-index { display: none; }
  .about-content { max-width: 100%; margin-bottom: var(--space-6); }
  .about-eyebrow::after { width: 80px; }

  .about-media {
    position: relative;
    width: 100%;
    height: 320px;
  }
  .about-media-img,
  .about-media::before {
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }
  .about-media-line { display: none; }
}
/* --- SECTION 3: PREMIOS Y RECONOCIMIENTOS (Rediseño Porcelanosa) --- */
.section-awards {
  position: relative;
  background-color: #f7f3ee;
  padding: clamp(60px, 7vw, 100px) 0 clamp(60px, 6vw, 90px);
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Fondo de arboles desvanecido pegado al borde izquierdo */
.awards-trees-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: clamp(280px, 36vw, 550px);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.awards-trees-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.20;
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.02);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 35%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 35%, rgba(0, 0, 0, 0) 100%);
}

.awards-container {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}

.awards-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(36px, 5.5vw, 72px);
  align-items: stretch;
}

/* Columna izquierda: Información */
.awards-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-right: clamp(10px, 2.5vw, 36px);
}

.awards-content-top {
  display: flex;
  flex-direction: column;
}

.awards-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.awards-kicker-line {
  display: inline-block;
  width: 36px;
  height: 1.5px;
  background-color: #8c7f72;
}

.awards-kicker-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7f756b;
}

.awards-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.3vw, 3.35rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #141618;
  margin: 0 0 24px 0;
}

.awards-desc {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.02vw, 1.02rem);
  line-height: 1.68;
  color: #4b4f55;
  margin: 0 0 24px 0;
  font-weight: 400;
  max-width: 580px;
}

.awards-divider {
  width: 52px;
  height: 1.5px;
  background-color: #8c7f72;
  margin: 0 0 24px 0;
}

.awards-highlight {
  font-family: var(--font-sans);
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  line-height: 1.5;
  color: #26292d;
  margin: 0 0 36px 0;
  font-weight: 500;
}

.awards-highlight strong {
  font-weight: 700;
  color: #0c0e10;
}

/* Botón Ornamental / Placeholder según Wireframe */
.awards-cta-wrap {
  margin-top: auto;
  padding-top: 12px;
}

.awards-ornamental-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #51543d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 18px 44px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.awards-ornamental-btn:hover {
  background-color: #444733;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.awards-btn-arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.awards-ornamental-btn:hover .awards-btn-arrow {
  transform: translateX(4px);
}

/* Columna derecha: Visuales */
.awards-visual-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

/* Vitrina de trofeo con corte diagonal */
.awards-trophy-showcase {
  position: relative;
  width: 100%;
  height: clamp(320px, 30vw, 420px);
  overflow: hidden;
  background-color: #1a1c1e;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.awards-trophy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.awards-trophy-showcase:hover .awards-trophy-img {
  transform: scale(1.03);
}

/* Grilla de 3 miniaturas */
.awards-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

.awards-thumb-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  height: 150px;
}

.awards-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.awards-thumb-item:hover .awards-thumb-img {
  transform: scale(1.05);
}

/* Adaptación responsive */
@media (max-width: 991px) {
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .awards-info-col {
    padding-right: 0;
  }

  .awards-trophy-showcase {
    clip-path: none;
    height: 320px;
  }

  .awards-trees-bg {
    width: 65%;
    opacity: 0.14;
  }
}

@media (max-width: 600px) {
  .awards-thumbnails-grid {
    gap: 8px;
  }

  .awards-heading {
    font-size: 1.85rem;
  }

  .awards-trophy-showcase {
    height: 250px;
  }
}

/* --- SECTION 4: SELECTED PROJECTS (Principales Proyectos 3D Coverflow) --- */
.section-projects {
  background-color: #0b0d10;
  border-top: 1px solid var(--color-carbon-border);
  border-bottom: 1px solid var(--color-carbon-border);
  padding: 100px 0 110px;
  overflow: hidden;
  position: relative;
}

.projects-coverflow-wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 40px auto 0;
  overflow: hidden;
}

.projects-coverflow-stage {
  position: relative;
  width: 100%;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1300px;
  transform-style: preserve-3d;
}

/* 3D Coverflow Card con bordes redondeados (24px) */
.project-coverflow-card {
  position: absolute;
  width: clamp(310px, 32vw, 440px);
  height: clamp(390px, 42vw, 540px);
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  transform-style: preserve-3d;
  user-select: none;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  background-color: #111418;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-coverflow-card.is-active .project-card-inner {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 255, 255, 0.06);
}

.project-coverflow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.5s ease;
}

/* Degradados para legibilidad de textos */
.project-coverflow-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 30%),
              linear-gradient(0deg, rgba(6, 8, 10, 0.95) 0%, rgba(6, 8, 10, 0.6) 40%, rgba(6, 8, 10, 0) 75%);
}

/* Tag de Categoría Superior */
.project-coverflow-top {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
}

.project-category-tag {
  font-family: var(--font-inter);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

/* Información Inferior */
.project-coverflow-bottom {
  position: absolute;
  bottom: 30px;
  left: 32px;
  right: 32px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.project-coverflow-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin: 0 0 10px 0;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.project-location-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-loc-text {
  font-family: var(--font-inter);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.project-loc-divider {
  display: inline-block;
  width: 44px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

.project-counter {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  margin-bottom: 2px;
}

/* Difuminado al pasar el cursor y revelación de botón para ver el proyecto */
.project-coverflow-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 5;
  padding: 24px;
}

.project-coverflow-card:hover .project-coverflow-hover-overlay,
.project-coverflow-card:focus .project-coverflow-hover-overlay {
  opacity: 1;
  visibility: visible;
}

.project-coverflow-card:hover .project-coverflow-img,
.project-coverflow-card:focus .project-coverflow-img {
  filter: blur(6px) brightness(0.65);
  transform: scale(1.05);
}

.project-coverflow-view-btn {
  background: var(--color-olive);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.project-coverflow-view-btn:hover {
  background: #687d44;
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

/* Controles Inferiores (Flecha Izq, Dashes, Flecha Der) */
.projects-coverflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
  position: relative;
  z-index: 10;
}

.coverflow-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.coverflow-arrow-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

.coverflow-dashes {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coverflow-dash {
  width: 24px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.coverflow-dash:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.coverflow-dash.is-active {
  background-color: #ffffff;
  width: 38px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@media (max-width: 991px) {
  .projects-coverflow-stage {
    height: 500px;
  }
  .project-coverflow-card {
    width: clamp(280px, 48vw, 380px);
    height: clamp(360px, 58vw, 480px);
  }
  .project-coverflow-top {
    top: 20px;
    left: 22px;
  }
  .project-coverflow-bottom {
    bottom: 22px;
    left: 22px;
    right: 22px;
  }
}

@media (max-width: 600px) {
  .projects-coverflow-stage {
    height: 450px;
  }
  .project-coverflow-card {
    width: 86vw;
    height: 410px;
    border-radius: 20px;
  }
  .project-card-inner,
  .project-coverflow-scrim,
  .project-coverflow-hover-overlay {
    border-radius: 20px;
  }
  .projects-coverflow-controls {
    gap: 20px;
    margin-top: 24px;
  }
  .coverflow-arrow-btn {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   SECTION 5: CREATE YOUR OWN DESIGN (Crea Tu Propio Diseño - Remodelado)
   Composición arquitectónica exacta a la referencia visual:
   - Fondo general: Fondo crear diseño.png con sutil viñeta ambiental
   - Encabezado: Kicker lineal LUXBAU DESIGN TOOL + Título bicolor + Subtítulo
   - Video central en formato 16:9 con esquinas redondeadas (Crear diseño mp4.mp4)
   - Botón reubicado Create Design → con animación lúdica de Perezoso Costarricense
   - 2 fotos auxiliares (foto auxiliar 1.png y foto auxiliar 2.png) con paleta de 5 muestras cada una
   ========================================================================== */
.section-custom-design-modern {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #07090b;
  padding: 90px 0 100px;
}

/* Fondo inmersivo con la imagen arquitectónica completa */
.custom-design-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.custom-design-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(1.5) contrast(1);
}

.custom-design-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
  circle at 50% 45%,
  rgba(10, 13, 16, 0.25) 0%,
  rgba(6, 8, 10, 0.68) 80%,
  rgba(4, 5, 7, 0.85) 100%
);
  pointer-events: none;
}

/* Contenedor central de la herramienta de diseño */
.custom-design-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Encabezado: Kicker con líneas decorativas, título y subtítulo */
.custom-design-header {
  margin-bottom: 22px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-design-kicker-line-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.custom-design-kicker-line {
  display: inline-block;
  width: 42px;
  height: 1px;
  background-color: #7d8f76;
  opacity: 0.85;
}

.custom-design-kicker-text {
  font-family: var(--font-inter);
  font-size: clamp(0.68rem, 0.82vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8b9d83;
}

.custom-design-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.7vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important;
  line-height: 1.22;
  margin: 0 0 8px 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}

.custom-design-title-accent {
  color: #8a9c81 !important;
  font-weight: 600;
  transition: color 0.3s ease;
}

.custom-design-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.05vw, 0.98rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #b5c0c9 !important;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* Marco del video de la herramienta (en medio, grande, bordes redondeados) */
.custom-design-video-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background-color: #0c0f12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.82), 0 0 36px rgba(0, 0, 0, 0.45);
  margin-bottom: 22px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.custom-design-video-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(138, 156, 129, 0.2);
  border-color: rgba(138, 156, 129, 0.4);
}

.custom-design-tool-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #090c0e;
}

/* ==========================================================================
   BOTÓN CON ANIMACIÓN DE MONO CARA BLANCA COSTARRICENSE (SALTANDO)
   Para la sección de Principales Proyectos (enlace a portfolio.html)
   Basado en el diseño negro arquitectónico con bordes blancos y salto ágil
   ========================================================================== */
.monkey-btn-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  z-index: 10;
}

.btn-monkey {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 36px;
  min-width: 190px;
  font-family: var(--font-inter);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  z-index: 10;
}

.btn-monkey-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  transition: color 0.3s ease;
}

/* Efecto hover: bordes blancos y resplandor blanco/luz idéntico a crear diseño */
.btn-monkey:hover,
.monkey-btn-container:hover .btn-monkey {
  background: #050709;
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 22px rgba(255, 255, 255, 0.5);
}

/* Avatar del Mono Cara Blanca Costarricense */
.monkey-avatar {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  width: 72px;
  height: 72px;
  pointer-events: none;
  z-index: 25;
  transform: translateX(-50%) translateY(20px) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65));
  overflow: visible;
}

/* Al pasar el cursor por el contenedor o la tarjeta, el mono aparece */
.monkey-btn-container:hover .monkey-avatar,
.project-coverflow-card:hover .monkey-avatar {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Animación de salto atlético del mono cara blanca */
.monkey-btn-container:hover .monkey-figure,
.project-coverflow-card:hover .monkey-figure {
  animation: monkeyJumpCycle 1.25s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
  transform-origin: 50px 88px;
}

/* Sombra dinámica sobre la base del botón */
.monkey-btn-container:hover .monkey-shadow,
.project-coverflow-card:hover .monkey-shadow {
  animation: monkeyShadowPulse 1.25s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
  transform-origin: 50px 92px;
}

/* Movimiento de brazos al impulsarse y celebrar en el salto */
.monkey-btn-container:hover .monkey-arm-left,
.project-coverflow-card:hover .monkey-arm-left {
  animation: monkeyArmLeftJump 1.25s ease-in-out infinite;
  transform-origin: 34px 46px;
}

.monkey-btn-container:hover .monkey-arm-right,
.project-coverflow-card:hover .monkey-arm-right {
  animation: monkeyArmRightJump 1.25s ease-in-out infinite;
  transform-origin: 66px 46px;
}

/* Movimiento de la cola prensil al balancearse y saltar */
.monkey-btn-container:hover .monkey-tail,
.project-coverflow-card:hover .monkey-tail {
  animation: monkeyTailSpring 1.25s ease-in-out infinite;
  transform-origin: 38px 68px;
}

@keyframes monkeyJumpCycle {
  0%, 100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
  14% {
    /* Agachada previa al impulso (anticipación elástica) */
    transform: translateY(5px) scale(1.09, 0.85) rotate(0deg);
  }
  38% {
    /* Salto enérgico hacia arriba */
    transform: translateY(-24px) scale(0.92, 1.12) rotate(-3deg);
  }
  50% {
    /* Ápice del salto flotando en el aire */
    transform: translateY(-30px) scale(1.04, 1.02) rotate(4deg);
  }
  68% {
    /* Descenso controlado */
    transform: translateY(-10px) scale(0.96, 1.06) rotate(-1deg);
  }
  82% {
    /* Aterrizaje sobre el botón con amortiguación suave */
    transform: translateY(3px) scale(1.12, 0.88) rotate(0deg);
  }
  92% {
    /* Rebote elástico */
    transform: translateY(-2px) scale(0.98, 1.02) rotate(0deg);
  }
}

@keyframes monkeyShadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  14% {
    transform: scale(1.2);
    opacity: 0.75;
  }
  38%, 50% {
    transform: scale(0.45);
    opacity: 0.15;
  }
  68% {
    transform: scale(0.75);
    opacity: 0.35;
  }
  82% {
    transform: scale(1.25);
    opacity: 0.8;
  }
  92% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

@keyframes monkeyArmLeftJump {
  0%, 100% {
    transform: rotate(0deg);
  }
  14% {
    transform: rotate(10deg);
  }
  38%, 50% {
    transform: rotate(-26deg);
  }
  82% {
    transform: rotate(6deg);
  }
}

@keyframes monkeyArmRightJump {
  0%, 100% {
    transform: rotate(0deg);
  }
  14% {
    transform: rotate(-10deg);
  }
  38%, 50% {
    transform: rotate(26deg);
  }
  82% {
    transform: rotate(-6deg);
  }
}

@keyframes monkeyTailSpring {
  0%, 100% {
    transform: rotate(0deg);
  }
  14% {
    transform: rotate(8deg);
  }
  38%, 50% {
    transform: rotate(-20deg);
  }
  75% {
    transform: rotate(12deg);
  }
}

/* ==========================================================================
   BOTÓN REUBICADO CON ANIMACIÓN DE PEREZOSO COSTARRICENSE
   Estilo negro translúcido arquitectónico con bordes sutiles oliva y flecha
   ========================================================================== */
.sloth-btn-container {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4px 0 24px 0;
  z-index: 12;
}

.btn-sloth {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 32px;
  min-width: 180px;
  font-family: var(--font-inter);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(16, 20, 22, 0.84);
  border: 1px solid rgba(138, 156, 129, 0.5);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  z-index: 10;
}

.btn-sloth-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.btn-sloth-arrow {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

/* Efecto hover del botón con resplandor suave */
.btn-sloth:hover,
.sloth-btn-container:hover .btn-sloth {
  background: rgba(22, 28, 30, 0.95);
  border-color: #8a9c81;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 20px rgba(138, 156, 129, 0.35);
}

.btn-sloth:hover .btn-sloth-arrow,
.sloth-btn-container:hover .btn-sloth-arrow {
  transform: translateX(4px);
}

/* Avatar del Perezoso Costarricense asomándose en el botón */
.sloth-avatar {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  width: 68px;
  height: 68px;
  pointer-events: none;
  z-index: 25;
  transform: translateX(-50%) translateY(24px) scale(0);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65));
}

.sloth-btn-container:hover .sloth-avatar {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: slothPeekCycle 2.4s ease-in-out infinite;
}

/* Animación del perezoso: asomándose curioso, balanceándose suavemente y saludando */
@keyframes slothPeekCycle {
  0% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
  20% {
    transform: translateX(-50%) translateY(-5px) scale(1.03) rotate(3deg);
  }
  45% {
    transform: translateX(-50%) translateY(-2px) scale(0.98) rotate(-3deg);
  }
  70% {
    transform: translateX(-50%) translateY(-6px) scale(1.04) rotate(2deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
}

/* Animación del brazo derecho del perezoso (saludo) */
.sloth-btn-container:hover .sloth-arm-right {
  animation: slothArmWave 2.4s ease-in-out infinite;
  transform-origin: 68px 65px;
}

@keyframes slothArmWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(-14deg);
  }
}

/* ==========================================================================
   2 FOTOS AUXILIARES CON PALETAS DE TONOS/MATERIALES
   ========================================================================== */
.custom-design-aux-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 820px;
}

.custom-design-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
  background-color: #0c0f12;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.custom-design-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(138, 156, 129, 0.25);
  border-color: rgba(138, 156, 129, 0.55);
}

.custom-design-card-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.custom-design-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-design-card:hover .custom-design-card-img {
  transform: scale(1.04);
}

/* Paleta de muestras flotante en la esquina inferior izquierda */
.custom-design-swatch-pill {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(16, 20, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-design-card:hover .custom-design-swatch-pill {
  background: rgba(16, 20, 23, 0.86);
  border-color: rgba(255, 255, 255, 0.3);
}

.swatch-circle {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swatch-circle:hover {
  transform: scale(1.35);
  border-color: #ffffff;
}

/* Muestras Foto Auxiliar 1: Patio */
.swatch-c1-1 { background-color: #e5dfd4; }
.swatch-c1-2 { background-color: #a99f92; }
.swatch-c1-3 { background-color: #484d4e; }
.swatch-c1-4 { background-color: #222425; }
.swatch-c1-5 { background-color: #525d43; }

/* Muestras Foto Auxiliar 2: Living */
.swatch-c2-1 { background-color: #efe8dd; }
.swatch-c2-2 { background-color: #bdad9c; }
.swatch-c2-3 { background-color: #3d3e40; }
.swatch-c2-4 { background-color: #17181a; }
.swatch-c2-5 { background-color: #647051; }

/* ==========================================================================
   ANIMACIÓN DE DELFÍN DE COSTA RICA (Para los botones del Hero)
   Salto grácil en arco, ondulación de aletas y gotas de agua oceánicas
   ========================================================================== */
.dolphin-btn-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dolphin-avatar {
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  width: 86px;
  height: 52px;
  pointer-events: none;
  z-index: 25;
  transform: translateX(-50%) translateY(26px) scale(0) rotate(-18deg);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
  filter: drop-shadow(0 6px 14px rgba(46, 196, 182, 0.55));
}

.dolphin-water-ripple {
  fill: rgba(46, 196, 182, 0.28);
  filter: blur(2px);
}

.dolphin-btn-container:hover .dolphin-avatar {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  animation: dolphinLeapCycle 1.9s cubic-bezier(0.38, 0, 0.22, 1) infinite;
}

@keyframes dolphinLeapCycle {
  0% {
    transform: translateX(-50%) translateY(4px) scale(0.92) rotate(-14deg);
  }
  25% {
    /* Impulso saliendo de la superficie */
    transform: translateX(-50%) translateY(-22px) scale(1.08) rotate(-4deg);
  }
  50% {
    /* Cúspide del salto acrobático en arco */
    transform: translateX(-50%) translateY(-34px) scale(1.12) rotate(8deg);
  }
  75% {
    /* Inmersión suave hacia el agua */
    transform: translateX(-50%) translateY(-12px) scale(1.02) rotate(16deg);
  }
  100% {
    transform: translateX(-50%) translateY(4px) scale(0.92) rotate(-14deg);
  }
}

/* Ondulación de aleta pectoral del delfín */
.dolphin-btn-container:hover .dolphin-flipper {
  animation: dolphinFlipperWave 0.95s ease-in-out infinite alternate;
  transform-origin: 58px 35px;
}

@keyframes dolphinFlipperWave {
  0% {
    transform: rotate(-8deg);
  }
  100% {
    transform: rotate(14deg);
  }
}

/* Gotas de agua y espuma salpicando al saltar */
.dolphin-btn-container:hover .dolphin-drop {
  animation: dolphinSprayDrop 1.9s ease-out infinite;
}

.dolphin-drop-1 { animation-delay: 0.05s; }
.dolphin-drop-2 { animation-delay: 0.15s; }
.dolphin-drop-3 { animation-delay: 0.25s; }
.dolphin-drop-4 { animation-delay: 0.1s; }

@keyframes dolphinSprayDrop {
  0%, 15% {
    opacity: 0;
    transform: scale(0.3) translateY(0);
  }
  35% {
    opacity: 1;
    transform: scale(1.25) translateY(-14px) translateX(-4px);
  }
  65% {
    opacity: 0.85;
    transform: scale(0.9) translateY(-6px) translateX(-8px);
  }
  85%, 100% {
    opacity: 0;
    transform: scale(0.2) translateY(8px) translateX(-12px);
  }
}

/* Resplandor oceánico refinado al interactuar con los botones del Hero */
.dolphin-btn-container:hover .hero-cta-btn,
.dolphin-btn-container:hover .hero-secondary-btn {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(46, 196, 182, 0.45);
  border-color: rgba(79, 209, 197, 0.85);
  transform: translateY(-2px);
}

/* Responsive queries para la sección de diseño y héroe */
@media (max-width: 992px) {
  .section-custom-design-modern {
    padding: 75px 0 85px;
    min-height: auto;
  }
  .custom-design-video-frame {
    max-width: 92%;
    border-radius: 16px;
  }
  .custom-design-aux-cards {
    max-width: 92%;
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .section-custom-design-modern {
    padding: 60px 0 70px;
    min-height: auto;
  }
  .custom-design-title {
    font-size: 1.6rem;
  }
  .custom-design-subtitle {
    font-size: 0.85rem;
  }
  .custom-design-video-frame {
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .custom-design-aux-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .custom-design-card {
    border-radius: 14px;
  }
  .btn-sloth {
    padding: 11px 26px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .custom-design-title {
    font-size: 1.35rem;
  }
  .custom-design-kicker-line {
    width: 24px;
  }
  .custom-design-kicker-text {
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   SECTION 6: LUXBAU CONNECT (Modern Diagonal & Architectural Layout)
   ========================================================================== */
.section-connect-modern {
  position: relative;
  background-color: #0b0d10;
  border-top: 1px solid #1f242b;
  border-bottom: 1px solid #1f242b;
  padding: 95px 0 115px;
  overflow: hidden;
}

/* --- Fondo con líneas y mallas diagonales --- */
.connect-diag-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 0,
      transparent 40px
    );
  z-index: 1;
}

.diag-line {
  position: absolute;
  height: 1px;
  transform: rotate(-32deg);
  transform-origin: 0% 0%;
  pointer-events: none;
}

.diag-line-1 {
  width: 900px;
  top: 12%;
  left: -80px;
  background: linear-gradient(90deg, transparent, rgba(58, 139, 168, 0.35), transparent);
}

.diag-line-2 {
  width: 1200px;
  top: 45%;
  right: -200px;
  background: linear-gradient(90deg, transparent, rgba(46, 196, 182, 0.25), transparent);
}

.diag-line-3 {
  width: 700px;
  bottom: 8%;
  left: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* --- Contenedor Principal --- */
.connect-container-modern {
  position: relative;
  z-index: 2;
}

.connect-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 50px;
  align-items: center;
}

/* --- Columna Izquierda --- */
.connect-info-panel {
  display: flex;
  flex-direction: column;
}

.connect-tag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.connect-dot-live {
  width: 8px;
  height: 8px;
  background-color: #2ec4b6;
  border-radius: 50%;
  box-shadow: 0 0 12px #2ec4b6;
  animation: pulseConnectDot 2s infinite ease-in-out;
}

@keyframes pulseConnectDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.connect-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.connect-highlight-title {
  display: block;
  background: linear-gradient(90deg, #ffffff 40%, #7db9d1 100%);
  -webkit-text-fill-color: transparent;
}

.connect-lead {
  color: #c0c8d1;
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 300;
  max-width: 530px;
}

/* --- cuadras Limpias de Especificaciones --- */
.connect-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 35px;
}

.connect-spec-item {
  position: relative;
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.connect-spec-item:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 139, 168, 0.4);
  background: rgba(22, 27, 34, 0.85);
}

.spec-diag-accent {
  width: 3px;
  height: 18px;
  background: #3a8ba8;
  transform: skewY(-20deg);
  border-radius: 1px;
}

.spec-num {
  font-family: monospace;
  font-size: 11px;
  color: #2ec4b6;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.connect-spec-item strong {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Botones --- */
.connect-action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-connect-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0e3846;
  border: 1px solid #3a8ba8;
  color: #ffffff;
  padding: 15px 30px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  box-shadow: 0 4px 20px rgba(14, 56, 70, 0.4);
  transition: all 0.3s ease;
}

.btn-connect-primary:hover {
  background: #15556a;
  border-color: #5ec2e3;
  box-shadow: 0 6px 25px rgba(58, 139, 168, 0.45);
  transform: translateY(-2px);
}

.btn-connect-primary .btn-arrow {
  transition: transform 0.25s ease;
}

.btn-connect-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-connect-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e5e8eb;
  padding: 15px 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  transition: all 0.25s ease;
}

.btn-connect-secondary:hover {
  border-color: #2ec4b6;
  color: #2ec4b6;
  background: rgba(46, 196, 182, 0.05);
}

/* ==========================================================================
   COLUMNA DERECHA: Foto de Arquitectura Clara + Portal Superpuesto
   ========================================================================== */
.connect-visual-composite {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 1. Foto Arquitectónica (Alta Visibilidad y Claridad) --- */
.arch-photo-card {
  position: relative;
  width: 92%;
  height: 400px;
  margin-right: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  background-color: #12151a;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

.arch-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Imagen clara y vívida */
  filter: brightness(1.2) contrast(1.2);
  transition: transform 0.6s ease;
}

.arch-photo-card:hover .arch-photo-img {
  transform: scale(1.03);
}

/* Overlay suave y translúcido que permite apreciar los detalles del diseño */
.arch-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg, 
    rgba(14, 56, 70, 0.15) 0%, 
    rgba(11, 13, 16, 0.35) 100%
  );
  z-index: 1;
}

/* Escuadras en las esquinas */
.arch-corner-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
  pointer-events: none;
}

.arch-corner-bracket.top-left {
  top: 10px;
  left: 10px;
  border-top: 2px solid #3a8ba8;
  border-left: 2px solid #3a8ba8;
}

.arch-corner-bracket.bottom-right {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid #3a8ba8;
  border-right: 2px solid #3a8ba8;
}

/* --- 2. Tarjeta del Portal (Superpuesta en esquina inferior) --- */
.portal-mockup-card {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 74%;
  background: #0f1216;
  border: 1px solid #3a8ba8;
  box-shadow: -15px 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(14, 56, 70, 0.3);
  z-index: 3;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portal-mockup-card:hover {
  transform: translateY(-5px);
  box-shadow: -15px 30px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(58, 139, 168, 0.4);
}

.portal-card-header {
  background: #161a20;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-window-dots {
  display: flex;
  gap: 5px;
}

.portal-window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #47515e;
}

.portal-window-title {
  font-family: monospace;
  font-size: 10px;
  color: #9ea7b0;
  letter-spacing: 0.08em;
}

.portal-image-container {
  background: #ffffff;
}

.portal-login-screen {
  width: 100%;
  height: auto;
  display: block;
}

.portal-card-footer-modern {
  background: #111419;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-status-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.portal-status-dot {
  width: 6px;
  height: 6px;
  background: #2ec4b6;
  border-radius: 50%;
  box-shadow: 0 0 6px #2ec4b6;
}

.portal-status-text {
  font-family: monospace;
  font-size: 10px;
  color: #2ec4b6;
}

.portal-login-btn-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #3a8ba8;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.portal-login-btn-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

/* Barra de acento diagonal */
.visual-diagonal-accent-bar {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 4px;
  height: 120px;
  background: linear-gradient(to bottom, #2ec4b6, transparent);
  transform: skewX(-25deg);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets y Móviles)
   ========================================================================== */
@media (max-width: 992px) {
  .connect-grid-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .connect-visual-composite {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .arch-photo-card {
    width: 100%;
    height: 320px;
  }

  .portal-mockup-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -50px;
  }
}

@media (max-width: 576px) {
  .connect-specs-grid {
    grid-template-columns: 1fr;
  }

  .connect-action-buttons {
    flex-direction: column;
  }

  .btn-connect-primary, 
  .btn-connect-secondary {
    width: 100%;
    justify-content: center;
  }
}
/* --- SECTION 7: SITE FOOTER (Medios de Contacto y Redes) --- */
.site-footer {
  background-color: #0b0c0e;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-carbon-border);
  padding: var(--space-10) 0 var(--space-6);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-col-title {
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-2);
}

.footer-contact-list li {
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
}

.contact-lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-olive-light);
  text-transform: uppercase;
}

.contact-val {
  font-size: var(--text-sm);
  color: #cfd6df;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  background-color: var(--color-carbon-surface);
  border: 1px solid var(--color-carbon-border);
  color: var(--color-white);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background-color: var(--color-petrol);
  border-color: var(--color-petrol-light);
}

.footer-social-btn .icon {
  filter: brightness(0) invert(1);
}

.footer-nav-list li {
  margin-bottom: var(--space-3);
}

.footer-nav-list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted-light);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-white);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand-logo {
  height: 28px;
  filter: brightness(0) invert(1);
}

.copyright-text {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.back-to-top {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-petrol-light);
}

.back-to-top:hover {
  color: var(--color-white);
}

/* ==========================================================================
   7. MODALES E INTERACTIVIDAD
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

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

.modal-dialog {
  background-color: var(--color-white);
  border: 1px solid var(--color-carbon-border);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-square);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-dialog-lg {
  max-width: 860px;
}

.modal-backdrop.is-active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  background-color: var(--color-offwhite);
}

.modal-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-petrol);
  text-transform: uppercase;
}

.modal-title {
  font-size: var(--text-xl);
  color: var(--color-carbon);
  margin-top: 4px;
}

.modal-close-btn {
  padding: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-body {
  padding: var(--space-6);
}

.modal-media {
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-border-light);
}

.modal-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.modal-text-content p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.modal-quote {
  border-left: 3px solid var(--color-olive);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-olive-soft);
  margin: var(--space-5) 0;
  font-style: italic;
}

.modal-quote cite {
  display: block;
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-olive);
  margin-top: 6px;
}

.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: flex-end;
  background-color: var(--color-offwhite);
}

/* Modal Personalizador de Espacios */
.customizer-section {
  margin-bottom: var(--space-5);
}

.customizer-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-carbon);
  margin-bottom: var(--space-3);
}

.customizer-options-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.customizer-pill {
  padding: 10px 16px;
  background-color: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.customizer-pill.active {
  background-color: var(--color-carbon);
  color: var(--color-white);
  border-color: var(--color-carbon);
}

.material-palette-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.material-tile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.material-tile.active {
  border-color: var(--color-petrol);
  background-color: var(--color-petrol-soft);
}

.mat-color-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.mat-travertine { background-color: #dfd7cc; }
.mat-carbon     { background-color: #1a1d20; }
.mat-olive      { background-color: #566738; }
.mat-petrol     { background-color: #0e3846; }

.mat-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-carbon);
}

.customizer-preview-container {
  border: 1px solid var(--color-border-light);
  background-color: #fafbfc;
  padding: var(--space-4);
  position: relative;
  text-align: center;
}

.customizer-preview-image {
  max-height: 260px;
  width: 100%;
  object-fit: contain;
}

.customizer-live-badge {
  background-color: var(--color-carbon);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  margin-top: var(--space-3);
  display: inline-block;
  letter-spacing: 0.05em;
}

/* Formulario LuxBau Connect */
.connect-form .form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-carbon);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 0;
  font-family: inherit;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-petrol);
}

.form-status-box {
  margin-top: var(--space-4);
  padding: 12px;
  font-size: var(--text-xs);
  background-color: var(--color-petrol-soft);
  color: var(--color-petrol);
  border-left: 3px solid var(--color-petrol);
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (Adaptación a Dispositivos)
   ========================================================================== */

/* Pantallas grandes y medianas (<= 1100px) */
@media (max-width: 1100px) {
  .row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .award-emblem-badge {
    width: 110px;
    height: 130px;
    right: -10px;
  }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .nav-group,
  .nav-left,
  .nav-right {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .header-container {
    min-height: 84px;
    justify-content: space-between;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-branding {
    padding: 0;
    text-align: left;
  }

  .brand-link {
    width: auto;
    display: flex;
    align-items: center;
  }

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

  .mobile-drawer .brand-logo-sm {
    height: 48px;
  }

  .row-1 {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .row-3 {
    grid-template-columns: 1fr;
  }

  .award-commitment-box {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .commitment-stats {
    border-left: none;
    border-top: 1px solid var(--color-carbon-border);
    padding-left: 0;
    padding-top: var(--space-4);
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .header-split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .header-right-note {
    text-align: left;
  }

  .awards-photo {
    height: 320px;
  }
}

/* Móviles (<= 640px) */
@media (max-width: 640px) {
  :root {
    --space-10: 3rem;
    --space-12: 4rem;
  }

  .top-bar {
    padding: 8px 0 10px;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .top-bar-left {
    justify-content: center;
  }

  .top-bar-tag {
    letter-spacing: 0.12em;
    text-align: center;
  }

  .top-bar-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 14px;
  }

  .header-container {
    min-height: 80px;
  }

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

  .hero-actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-spec-strip {
    flex-direction: column;
    gap: var(--space-3);
  }

  .spec-divider {
    display: none;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }

  .material-palette-grid {
    grid-template-columns: 1fr;
  }

  .connect-action-buttons {
    flex-direction: column;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-bottom-left {
    flex-direction: column;
  }
}
