/* ==========================================================================
   INVERMEDIC GROUP HOLDING - MAIN STYLESHEET
   Arquitectura de Doble Camino, Layout Responsivo, Bento Grids y Ambient Glow
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--color-bg-dark);
  color: var(--color-gray-light);
  overflow-x: hidden;
  position: relative;
}

/* Fondo ambiental sutil (Mesh Lights) */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, rgba(207, 168, 110, 0.04) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- TIPOGRAFÍA EDITORIAL DE LUJO --- */
h1, h2, h3, h4 {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--color-gray-muted);
  font-size: 1.05rem;
}

.highlight-gold {
  color: var(--color-gold-accent);
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* --- NAVBAR HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(7, 7, 8, 0.75);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 8px 0;
  background: rgba(7, 7, 8, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: all var(--transition-normal);
}

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

.site-header.scrolled .brand-logo-img {
  height: 44px;
}

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

.nav-link {
  color: var(--color-gray-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

/* Selector de Idioma Bilingüe */
.lang-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-subtle);
  color: var(--color-gray-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-selector-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Botón menú móvil */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 8px;
}

/* --- HERO SECTION CON FONDO FOTOGRÁFICO DE CONSULTORES --- */
.hero-section {
  padding-top: 170px;
  padding-bottom: 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor del fondo fotográfico inmersivo */
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 1;
  filter: none; /* IMAGEN LIMPIA: Fotografía 100% natural, sin oscurecimiento artificial ni velos */
  transform: scale(1.0);
  transition: opacity var(--transition-slow);
}

/* Capa de degradados: IMAGEN LIMPIA (Totalmente transparente en el cuerpo central del 15% al 78%) */
.hero-backdrop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.20) 0%,
    transparent 15%,
    transparent 78%,
    var(--color-bg-dark) 100%
  );
  transition: background var(--transition-slow);
}

/* Adaptación del fondo en Tema Claro: IMAGEN LIMPIA */
html.light .hero-backdrop-img {
  opacity: 1;
  filter: none;
}

html.light .hero-backdrop-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0%,
    transparent 15%,
    transparent 78%,
    var(--color-bg-dark) 100%
  );
}

/* CONTENIDO HERO: Tipografía de Alto Estatus, Sólida y Sin Errores de Renderizado */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge-wrapper {
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 4px 28px rgba(0, 0, 0, 0.75);
}

.hero-title .highlight-gold,
.hero-title .hero-title-highlight {
  display: block; /* Distribución editorial simétrica en 2 renglones equilibrados */
  color: #f7d28b !important;
  -webkit-text-fill-color: #f7d28b !important;
  background: none !important;
  filter: none !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 30px rgba(247, 210, 139, 0.45) !important;
  font-weight: 600;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: 740px;
  margin: 0 auto 38px auto;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* Tipografía en Tema Claro sobre la fotografía corporativa limpia */
html.light .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 4px 28px rgba(0, 0, 0, 0.75);
}

html.light .hero-title .highlight-gold,
html.light .hero-title .hero-title-highlight {
  display: block;
  color: #f7d28b !important;
  -webkit-text-fill-color: #f7d28b !important;
  background: none !important;
  filter: none !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 30px rgba(247, 210, 139, 0.45) !important;
  font-weight: 600;
}

html.light .hero-description {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.hero-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- SECCIONES Y CONTENEDOR DE PESTAÑAS (SPA) --- */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- BENTO GRIDS --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-col-3 {
  grid-column: span 3;
}

.bento-card-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.bento-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- PIPELINE DE METODOLOGÍA CONSULTIVA --- */
.methodology-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 40px 0;
  position: relative;
}

.pipeline-step {
  background: rgba(22, 22, 25, 0.7);
  border: var(--border-subtle);
  border-radius: var(--border-radius-sm);
  padding: 24px 16px;
  text-align: center;
  backdrop-filter: var(--glass-blur-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.pipeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(32, 32, 36, 0.85);
}

.pipeline-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-gold-accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.pipeline-title {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.pipeline-desc {
  font-size: 0.85rem;
  color: var(--color-gray-muted);
}

/* --- SECCIÓN ACERCA DE / 20 AÑOS --- */
.about-section {
  padding: var(--section-spacing) 0;
  border-top: var(--border-subtle);
  position: relative;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: rgba(18, 18, 20, 0.7);
  border: var(--border-subtle);
  border-radius: var(--border-radius-md);
  backdrop-filter: var(--glass-blur);
  margin-top: 50px;
  text-align: center;
}

.stat-item-number {
  font-size: 3rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item-label {
  font-size: 0.9rem;
  color: var(--color-gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- PASARELA DE CONTACTO A WHATSAPP --- */
.contact-section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-info-block {
  padding-right: 20px;
}

.contact-info-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-info-desc {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-highlights {
  list-style: none;
  margin-bottom: 40px;
}

.contact-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--color-gray-light);
}

.contact-highlight-icon {
  width: 22px;
  height: 22px;
  color: var(--color-gold-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- FOOTER CORPORATIVO --- */
.site-footer {
  padding: 60px 0 30px 0;
  border-top: var(--border-subtle);
  background: #040405;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-desc {
  margin-top: 16px;
  max-width: 360px;
  font-size: 0.9rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-gray-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-gray-muted);
}

/* --- RESPONSIVIDAD (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-col-2, .bento-col-3 {
    grid-column: span 2;
  }
  .methodology-pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }
  .brand-logo-img {
    height: 46px;
  }
  .hero-section {
    padding-top: 135px;
    padding-bottom: 64px;
    min-height: auto;
  }
  .hero-backdrop-img {
    object-position: center 25%;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-description {
    font-size: 1.05rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-2, .bento-col-3 {
    grid-column: span 1;
  }
  .methodology-pipeline {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .dual-tab-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  .glass-form-card {
    padding: 28px 20px;
  }
}

/* --- ESCAPARATES VISUALES Y FOTOGRAFÍA CORPORATIVA --- */
.hero-image-showcase {
  margin-top: 48px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.tab-spotlight-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 48px;
}

.tab-spotlight-layout.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.trayectoria-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  margin: 48px 0;
}

.trayectoria-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.trayectoria-visual .architectural-gallery-card {
  max-width: 440px;
  width: 100%;
}

.trayectoria-visual .architectural-gallery-visual {
  aspect-ratio: 4 / 5;
  max-height: 480px;
}

.trayectoria-visual .architectural-gallery-visual img {
  object-position: center 18%;
}

.trayectoria-visual .gallery-caption-plate {
  padding: 18px 24px;
  gap: 16px;
}

.trayectoria-visual .gallery-caption-title {
  font-size: 1.15rem;
  line-height: 1.3;
}

.trayectoria-visual .gallery-caption-desc {
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 992px) {
  .trayectoria-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .trayectoria-visual .architectural-gallery-card {
    max-width: 460px;
  }
}
