/* ==========================================
   GRUPO WALIKIS - SYSTEM DESIGN (SOBER PREMIUM CORPORATE)
   ========================================== */

:root {
  /* Default Holding Theme Variables (Corporate Blue & White) */
  --primary: #0d428c;
  --primary-rgb: 13, 66, 140;
  --primary-dark: #072652;
  --primary-light: #ffffff;
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
  --accent-light: #c8daf2;
  --secondary: #1b5cb8;
  --secondary-rgb: 27, 92, 184;
  
  --bg-dark: #061026; /* Dark Navy Background exactly matching the brand logo background */
  --bg-card: #0c1b38; /* Solid, crisp navy panels instead of blur glass */
  --card-border: #1a305e;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.45);
  
  --radius-sm: 8px; /* Formal corporate borders are sharper than rounded curves */
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
}

/* ==========================================
   DYNAMIC DIVERSIFIED SECTOR THEMES
   ========================================== */

body.theme-capacitacion {
  --primary: #0f766e; /* Sober Teal */
  --primary-rgb: 15, 118, 110;
  --primary-dark: #115e59;
  --secondary: #14b8a6;
}

body.theme-washington {
  --primary: #d4af37; /* Majestic Metallic Gold */
  --primary-rgb: 212, 175, 55;
  --primary-dark: #aa841c;
  --secondary: #e5c158;
}

body.theme-consultoria {
  --primary: #1d4ed8; /* Corporate Blue */
  --primary-rgb: 29, 78, 216;
  --primary-dark: #1e3a8a;
  --secondary: #3b82f6;
}

body.theme-textil {
  --primary: #be185d; /* Dark Rose */
  --primary-rgb: 190, 24, 93;
  --primary-dark: #9d174d;
  --secondary: #ec4899;
}

body.theme-catering {
  --primary: #b45309; /* Sober Amber / Bronze */
  --primary-rgb: 180, 83, 9;
  --primary-dark: #78350f;
  --secondary: #f59e0b;
}

body.theme-events {
  --primary: #2563a8;
  --primary-rgb: 37, 99, 168;
  --primary-dark: #1e4f88;
  --secondary: #4f8dcc;
}

body.theme-inmobiliaria {
  --primary: #6d28d9; /* Deep Purple */
  --primary-rgb: 109, 40, 217;
  --primary-dark: #5b21b6;
  --secondary: #8b5cf6;
}

/* ==========================================
   RESET & SCROLLBARS
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* ==========================================
   CORPORATE CARDS SYSTEM
   ========================================== */

.corporate-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.corporate-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

/* ==========================================
   TYPOGRAPHY & BRAND ACCENTS
   ========================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
}

/* Redesigned Brand Vector Logo matching the user's uploaded asset W WALIKIS */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-w {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 14px;
  line-height: 0.9;
  letter-spacing: normal;
  display: inline-block;
  transition: var(--transition);
}

.logo-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 5px;
  color: #ffffff;
  text-transform: uppercase;
  transition: var(--transition);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 4px; /* Crisp corners */
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
}
.divider span {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--primary);
  transition: background 0.4s ease;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-subtitle {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 4px; /* Crisp square-feel corporate buttons */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
  transition: background 0.4s, box-shadow 0.4s, transform var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.35);
}

.btn-secondary {
  background: #13264c;
  border: 1px solid #233c70;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #193161;
  border-color: var(--primary);
}

.btn-sm { padding: 10px 22px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ==========================================
   NAVBAR
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 10px 20px;
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 130px 24px 80px;
  overflow: hidden;
  background: linear-gradient(rgba(6, 16, 38, 0.88), rgba(6, 16, 38, 0.88)), url('../images/hero_holding.png') no-repeat center center/cover;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  animation: heroIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  padding: 60px 48px;
}

.hero-card h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 14px 0 22px;
  letter-spacing: -0.5px;
}

.hero-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 38px;
}

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

.hero-meta {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 36px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta i {
  color: var(--primary);
  font-size: 1rem;
  transition: color 0.4s;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounceDown 2.2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================
   DIVISIONS SHOWCASE
   ========================================== */

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.division-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.division-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.sector-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 2;
}

.card-body {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-body p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.92rem;
  margin-bottom: 22px;
  flex-grow: 1;
}

.sector-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.sector-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sector-features li i {
  font-size: 0.85rem;
  color: var(--primary);
}

.sector-action-btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
}

/* ==========================================
   SERVICES & DETAILED SOLUTIONS SECTION
   ========================================== */

.services-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 45px;
  width: 100%;
}

.services-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for clean visual */
}

.services-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Safari/Chrome */
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn:hover i {
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
}

/* Tab Panels */
.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Services Grid & Custom Border Themes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* Individual Service Card */
.service-card {
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 4px solid var(--primary); /* Accent line at the top */
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
}

/* Specific theme borders for services cards to match parent division colors */
.border-theme-inmobiliaria {
  border-top-color: #6d28d9 !important;
}
.border-theme-capacitacion {
  border-top-color: #0f766e !important;
}
.border-theme-consultoria {
  border-top-color: #1d4ed8 !important;
}
.border-theme-textil {
  border-top-color: #be185d !important;
}
.border-theme-catering {
  border-top-color: #b45309 !important;
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.05) rotate(5deg);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.service-features-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.service-features-list li i {
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 2px;
  transition: color 0.4s ease;
}

.service-cta-btn {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  width: 100%;
}

/* Responsiveness for Tabs */
@media (max-width: 768px) {
  .services-tabs-container {
    justify-content: flex-start;
    padding-bottom: 8px;
  }
  
  .services-tabs {
    width: 100%;
    padding: 4px;
  }
  
  .tab-btn {
    padding: 10px 18px;
    font-size: 0.82rem;
  }
}

/* ==========================================
   ABOUT US SECTION
   ========================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.about-text {
  padding: 40px;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
  font-size: 1rem;
}

.about-highlight {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 500;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0 10px;
}

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

.info-subcard {
  padding: 34px;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
  color: #ffffff;
}

.info-subcard h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.info-subcard p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.92rem;
}

/* ==========================================
   METRICS SECTION
   ========================================== */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.metric-card {
  padding: 40px 24px;
  text-align: center;
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--primary);
}

.metric-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #ffffff;
  line-height: 1.2;
}

.metric-label {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.contact-form-wrapper {
  padding: 40px;
}

.contact-form-wrapper h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.contact-form-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
  background: var(--bg-dark);
  color: #ffffff;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-card {
  padding: 28px;
  text-align: center;
}

.contact-info-card i {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.contact-info-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
  align-items: center;
}

.social-icon {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  transition: var(--transition);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
}

.social-icon:hover {
  color: var(--secondary) !important;
  transform: translateY(-3px) scale(1.15);
}

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

.footer {
  background: #040c1c;
  border-top: 1px solid var(--card-border);
  padding: 80px 24px 40px;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-newsletter h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
  display: inline-block;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.newsletter-form button {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--card-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================
   FADE IN ON SCROLL ANIMATION
   ========================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   ========================================== */

@media (max-width: 1024px) {
  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section { padding: 80px 20px; }
  .navbar { padding: 18px 0; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--card-border);
    flex-direction: column;
    padding: 100px 30px 40px;
    gap: 16px;
    transition: var(--transition);
  }
  
  .nav-menu.active { right: 0; }
  .nav-toggle { display: flex; }
  
  .divisions-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding: 24px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px; }
  
  .hero-card { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
}

/* ==========================================
   LIGHT MODE STYLING & PREMIUM DYNAMIC THEMES
   ========================================== */

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

body.light-mode {
  --bg-dark: #eef2f6; /* Slightly deeper background for more extreme contrast with solid white cards */
  --bg-card: #ffffff; /* Solid pristine white cards */
  --card-border: #abbdd4; /* More visible, distinct borders for crisp card definition */
  
  --text-primary: #0f172a; /* Slate 900 - extreme contrast for body texts */
  --text-secondary: #334155; /* Slate 700 - high contrast subtexts */
  --text-muted: #475569; /* Slate 600 - highly readable muted text */
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: #0b172a;
}

body.light-mode .theme-toggle-btn {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

body.light-mode .theme-toggle-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

body.light-mode .logo-w {
  color: var(--primary);
  border-right-color: rgba(13, 66, 140, 0.2);
}

body.light-mode .logo-name {
  color: var(--primary);
}

body.light-mode .badge {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.22);
  color: var(--primary);
}

body.light-mode .metric-number {
  color: var(--primary);
}

body.light-mode .about-highlight {
  background: rgba(var(--primary-rgb), 0.05);
  color: #0b172a !important;
}

body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0b172a;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group select:focus,
body.light-mode .form-group textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

body.light-mode .form-group select option {
  background: #ffffff;
  color: #0b172a;
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
  color: #94a3b8;
}

@media (max-width: 768px) {
  body.light-mode .nav-menu {
    background: #f4f6f9;
    border-left-color: #e1e6ef;
  }
}

body.light-mode .nav-link {
  color: #3b4d66;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

body.light-mode .nav-toggle span {
  background: #0b172a;
}

body.light-mode .navbar.scrolled {
  background: #f4f6f9;
  border-bottom-color: #e1e6ef;
}

body.light-mode .footer {
  background: #eaedf2;
  border-top-color: #cbd5e1;
}

body.light-mode .footer-bottom {
  border-top-color: #cbd5e1;
}

body.light-mode .footer-brand .logo-name {
  color: #0b172a;
}

body.light-mode .footer-brand .logo-w {
  color: var(--primary);
  border-right-color: rgba(13, 66, 140, 0.15);
}

body.light-mode .footer-links a {
  color: #3b4d66;
}

body.light-mode .footer-links a:hover {
  color: var(--primary);
}

body.light-mode .footer-links h4,
body.light-mode .footer-newsletter h4 {
  color: #0b172a;
}

body.light-mode .newsletter-form input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0b172a;
}

body.light-mode .newsletter-form input::placeholder {
  color: #94a3b8;
}

body.light-mode .btn-secondary {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0b172a;
}

body.light-mode .btn-secondary:hover {
  background: #cbd5e1;
  border-color: var(--primary);
}

body.light-mode .social-icon {
  background: transparent !important;
  border: none !important;
  color: var(--primary) !important;
}

body.light-mode .social-icon:hover {
  color: var(--primary-dark) !important;
}

body.light-mode .sector-badge {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0b172a;
}

/* Landing Pages Specific Premium Backgrounds */
.hero-bg-inmobiliaria {
  background: linear-gradient(rgba(6, 16, 38, 0.88), rgba(6, 16, 38, 0.88)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
.hero-bg-capacitacion {
  background: linear-gradient(rgba(6, 16, 38, 0.88), rgba(6, 16, 38, 0.88)), url('https://images.unsplash.com/photo-1515187029135-18ee286d815b?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
.hero-bg-consultoria {
  background: linear-gradient(rgba(6, 16, 38, 0.88), rgba(6, 16, 38, 0.88)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
.hero-bg-textil {
  background: linear-gradient(rgba(6, 16, 38, 0.88), rgba(6, 16, 38, 0.88)), url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
.hero-bg-catering {
  background: linear-gradient(rgba(6, 16, 38, 0.88), rgba(6, 16, 38, 0.88)), url('https://images.unsplash.com/photo-1555244162-803834f70033?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}

/* Process Section Styles */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.process-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
}

.process-step {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   GEORGE WASHINGTON LEADERS PROGRAM STYLING
   ========================================== */

.washington-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.washington-portrait {
  position: relative;
  transition: var(--transition);
}

.washington-portrait:hover {
  transform: translateY(-8px);
}

.washington-portrait::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: calc(var(--radius) + 8px);
  z-index: -1;
  pointer-events: none;
  animation: rotateDashed 60s linear infinite;
}

@keyframes rotateDashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#countrySelector:focus {
  border-color: #d4af37 !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

#countrySelector option {
  background: var(--bg-dark);
  color: #ffffff;
}

@media (max-width: 991px) {
  .washington-hero {
    flex-direction: column;
    text-align: center;
  }
  .washington-hero > div {
    text-align: center !important;
  }
  .washington-hero .hero-actions {
    justify-content: center !important;
  }
}

/* ==========================================
   2026 PREMIUM MULTI-THEMATIC ADVANCED SYSTEMS
   ========================================== */

/* Glowing Neon Lava Orbs Background */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  animation: orbFloat 28s ease-in-out infinite;
  transition: background 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), 
              opacity 0.8s ease;
}
.orb-1 {
  width: 650px; height: 650px;
  background: var(--primary);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 550px; height: 550px;
  background: var(--secondary);
  bottom: -150px; right: -150px;
  animation-delay: -9s;
}
.orb-3 {
  width: 450px; height: 450px;
  background: var(--primary-dark);
  top: 35%; left: 55%;
  animation-delay: -18s;
  opacity: 0.1;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -80px) scale(1.1); }
  66% { transform: translate(-50px, 60px) scale(0.9); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Custom Liquid Magnetic Cursor */
.custom-cursor {
  width: 18px;
  height: 18px;
  background: rgba(var(--primary-rgb), 0.12);
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: -9px;
  left: -9px;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              height 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              background 0.3s ease, 
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  mix-blend-mode: difference;
}
.custom-cursor.active {
  width: 42px;
  height: 42px;
  background: rgba(var(--primary-rgb), 0.3);
  border-color: var(--secondary);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.45);
}

body.light-mode .custom-cursor {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: var(--primary);
  mix-blend-mode: multiply;
}

/* Glassmorphism & High-Contrast Light Mode definitions */
body.light-mode .gradient-orb {
  opacity: 0.08;
  filter: blur(160px);
}
body.light-mode .corporate-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
body.light-mode .corporate-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* Active Navigation Indicators */
.nav-link.active {
  color: #ffffff !important;
  background: rgba(var(--primary-rgb), 0.12) !important;
  border-bottom: 2px solid var(--primary);
}
body.light-mode .nav-link.active {
  color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.06) !important;
  border-bottom-color: var(--primary);
}

/* Interactive Tabs styling */
.tab-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* Process number steps adapt to Light Mode */
body.light-mode .process-step {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}
body.light-mode .process-card p {
  color: var(--text-secondary);
}

/* ==========================================
   LIGHT MODE CONTRAST & LEGIBILITY SYSTEMS (2026 UPDATE)
   ========================================== */

/* Change dark overlays to soft, high-contrast light blue-gray overlays in Light Mode */
body.light-mode .hero {
  background: linear-gradient(rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.92)), url('../images/hero_holding.png') no-repeat center center/cover !important;
}
body.light-mode .hero-bg-inmobiliaria {
  background: linear-gradient(rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.92)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
body.light-mode .hero-bg-capacitacion {
  background: linear-gradient(rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.92)), url('https://images.unsplash.com/photo-1515187029135-18ee286d815b?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
body.light-mode .hero-bg-consultoria {
  background: linear-gradient(rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.92)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
body.light-mode .hero-bg-textil {
  background: linear-gradient(rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.92)), url('https://images.unsplash.com/photo-1558769132-cb1aea458c5e?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}
body.light-mode .hero-bg-catering {
  background: linear-gradient(rgba(238, 242, 246, 0.92), rgba(238, 242, 246, 0.92)), url('https://images.unsplash.com/photo-1555244162-803834f70033?q=80&w=1800&auto=format&fit=crop') no-repeat center center/cover !important;
}

/* Ensure absolute contrast of scrolled navbar in Light Mode */
body.light-mode .navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
  border-bottom-color: #cbd5e1 !important;
}
body.light-mode .nav-link {
  color: #1e293b !important;
}
body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.08) !important;
}
body.light-mode .logo-name {
  color: var(--primary) !important;
  font-weight: 800 !important;
}
body.light-mode .logo-w {
  color: var(--primary) !important;
  border-right-color: rgba(var(--primary-rgb), 0.3) !important;
}
body.light-mode .theme-toggle-btn {
  background: #ffffff !important;
  border-color: #abbdd4 !important;
  color: var(--primary) !important;
}
body.light-mode .theme-toggle-btn:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* TinyCMS Menu Override */
.nav-menu ul.level_0 {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu ul.level_0 li {
  list-style: none;
  position: relative;
}
.nav-menu ul.level_0 li a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  display: block;
}
.nav-menu ul.level_0 li a:hover,
.nav-menu ul.level_0 li.active a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-menu ul.level_0 li ul {
  display: none;
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links ul li a:hover {
  color: var(--accent);
}
body.light-mode .nav-menu ul.level_0 li a {
  color: rgba(6, 16, 38, 0.8);
}
body.light-mode .nav-menu ul.level_0 li a:hover,
body.light-mode .nav-menu ul.level_0 li.active a {
  color: #061026;
  background: rgba(13, 66, 140, 0.08);
}

/* Official identity and division landing pages */
.brand-logo {
  width: 66px;
  height: 66px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.footer-brand-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
}

.contact-info-card a,
.footer-links a {
  color: inherit;
}

.division-landing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.landing-hero {
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 150px 24px 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.24), transparent 48%);
}

.landing-hero-card {
  width: min(900px, 100%);
  padding: clamp(30px, 6vw, 76px);
  text-align: center;
}

.division-logo {
  width: min(260px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 32px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
}

.landing-hero h1 {
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1.08;
  max-width: 800px;
  margin: 0 auto 22px;
}

.landing-lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.landing-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
}

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

.landing-section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.landing-section-header p,
.landing-card p,
.landing-card li {
  color: var(--text-secondary);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.landing-card {
  padding: 30px;
}

.landing-card h3 {
  margin-bottom: 12px;
}

.landing-card ul {
  padding-left: 20px;
  margin-top: 16px;
}

.landing-card li + li {
  margin-top: 8px;
}

.landing-form-card {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px);
}

.landing-form-card form {
  display: grid;
  gap: 18px;
}

.landing-form-card .form-field {
  margin: 0;
}

.landing-form-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.landing-form-card input,
.landing-form-card textarea,
.landing-form-card select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: #07152f;
  color: #fff;
  font: inherit;
}

.landing-form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.landing-form-card button {
  width: 100%;
  justify-content: center;
  padding: 14px 34px;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.alert,
.notices {
  max-width: 820px;
  margin: 20px auto;
  padding: 16px;
  border-radius: 4px;
  background: rgba(var(--primary-rgb), 0.18);
  color: #fff;
}

@media (max-width: 700px) {
  .brand-logo { width: 52px; height: 52px; }
  .footer-brand-logo { width: 76px; height: 76px; }
  .landing-hero { min-height: auto; padding-top: 130px; }
  .landing-grid { grid-template-columns: 1fr; }
  .landing-section { padding: 64px 18px; }
}

/* ==========================================
   GRAV LANDING UX/UI REFINEMENT
   ========================================== */
.navbar {
  padding: 10px 0;
  background: rgba(4, 12, 28, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

.navbar.scrolled {
  padding: 8px 0;
  background: rgba(4, 12, 28, 0.96);
}

.nav-container {
  max-width: 1280px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.nav-menu ul.level_0 {
  align-items: center;
  gap: 8px;
}

.nav-menu ul.level_0 li a {
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu ul.level_0 li.active a {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.24);
}

.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.landing-hero {
  min-height: 780px;
  padding: 132px 28px 72px;
  background:
    radial-gradient(circle at 78% 18%, rgba(var(--primary-rgb), 0.28), transparent 34%),
    linear-gradient(135deg, #04102a 0%, var(--bg-dark) 54%, #081c3f 100%);
}

body.theme-inmobiliaria .landing-hero {
  background:
    linear-gradient(90deg, rgba(3, 12, 29, 0.88), rgba(5, 20, 45, 0.64)),
    url('../images/servicio-1.jpg') center 58% / cover no-repeat;
}

body.theme-events .landing-hero {
  background:
    linear-gradient(90deg, rgba(3, 12, 29, 0.9), rgba(5, 20, 45, 0.6)),
    url('../images/servicio-5.jpg') center 52% / cover no-repeat;
}

body.theme-consultoria .landing-hero {
  background:
    linear-gradient(90deg, rgba(3, 12, 29, 0.9), rgba(5, 20, 45, 0.62)),
    url('../images/servicio-3.jpg') center 48% / cover no-repeat;
}

.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 88%);
}

.landing-hero-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
  padding: clamp(28px, 4vw, 50px);
  text-align: left;
  overflow: visible;
  background: linear-gradient(145deg, rgba(12, 27, 56, 0.9), rgba(7, 20, 45, 0.84));
  backdrop-filter: blur(14px) saturate(115%);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
}

.landing-hero-card:hover {
  transform: none;
  border-color: rgba(var(--primary-rgb), 0.65);
}

.landing-hero-card > :not(.division-logo) {
  grid-column: 2;
}

.division-logo {
  grid-column: 1;
  grid-row: 1 / 6;
  width: 100%;
  max-width: 390px;
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.landing-hero-card .badge {
  width: max-content;
  margin: 0 0 2px;
}

.landing-hero h1 {
  max-width: 680px;
  margin: 8px 0 18px;
  font-size: clamp(2.45rem, 4.8vw, 4.35rem);
  letter-spacing: -0.035em;
}

.landing-lead {
  max-width: 650px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.landing-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.landing-actions .btn {
  min-height: 50px;
}

.landing-section {
  padding: 96px 28px;
}

.landing-section + .landing-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-section-header {
  margin-bottom: 52px;
}

.landing-section-header h2 {
  letter-spacing: -0.025em;
}

.landing-grid {
  gap: 24px;
}

.landing-card {
  min-height: 210px;
  padding: 34px;
  border-top: 3px solid var(--primary);
  background: linear-gradient(145deg, var(--bg-card), rgba(12, 31, 65, 0.9));
}

.landing-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.landing-card p {
  line-height: 1.75;
}

.project-showcase {
  max-width: 1320px;
}

.project-card {
  padding: clamp(18px, 3vw, 32px);
  border-top: 4px solid var(--primary);
  background: linear-gradient(145deg, rgba(12, 27, 56, 0.98), rgba(7, 20, 45, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: none;
}

.project-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.project-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-intro h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.tour-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #061026;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 45px rgba(0, 0, 0, 0.28);
}

.tour-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tour-help {
  margin: 18px 2px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tour-help i {
  margin-right: 7px;
  color: var(--accent-light);
}

.landing-form-card {
  max-width: 940px;
  border-top: 4px solid var(--primary);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.landing-form-card form {
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.landing-form-card .form-field:nth-of-type(4),
.landing-form-card .buttons {
  grid-column: 1 / -1;
}

.landing-form-card input,
.landing-form-card textarea,
.landing-form-card select {
  min-height: 52px;
  border-radius: 8px;
  background: #06152f;
  border-color: #29446f;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.landing-form-card input:focus,
.landing-form-card textarea:focus,
.landing-form-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.16);
}

.landing-form-card button {
  min-height: 52px;
  border-radius: 8px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.landing-form-card button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.25);
}

.footer-brand-logo {
  width: 112px;
  height: 112px;
}

body.light-mode .navbar,
body.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom-color: #d7e0eb !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .nav-menu ul.level_0 li a {
  color: #26364d;
}

body.light-mode .nav-menu ul.level_0 li a:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

body.light-mode .nav-menu ul.level_0 li.active a {
  color: #fff;
  background: var(--primary);
}

body.light-mode .landing-hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(var(--primary-rgb), 0.14), transparent 36%),
    linear-gradient(135deg, #f7faff 0%, #e7eef7 100%);
}

body.light-mode.theme-inmobiliaria .landing-hero {
  background:
    linear-gradient(90deg, rgba(240, 246, 253, 0.94), rgba(240, 246, 253, 0.72)),
    url('../images/servicio-1.jpg') center 58% / cover no-repeat;
}

body.light-mode.theme-events .landing-hero {
  background:
    linear-gradient(90deg, rgba(240, 246, 253, 0.94), rgba(240, 246, 253, 0.72)),
    url('../images/servicio-5.jpg') center 52% / cover no-repeat;
}

body.light-mode.theme-consultoria .landing-hero {
  background:
    linear-gradient(90deg, rgba(240, 246, 253, 0.94), rgba(240, 246, 253, 0.72)),
    url('../images/servicio-3.jpg') center 48% / cover no-repeat;
}

body.light-mode .landing-hero::after {
  background-image: linear-gradient(rgba(13,66,140,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(13,66,140,.045) 1px, transparent 1px);
}

body.light-mode .landing-hero-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: #c8d5e5;
  box-shadow: 0 30px 70px rgba(25, 48, 82, 0.15);
}

body.light-mode .landing-card {
  background: #fff;
  border-color: #d5dfeb;
  border-top-color: var(--primary);
}

body.light-mode .project-card {
  background: #fff;
  border-color: #d5dfeb;
  border-top-color: var(--primary);
  box-shadow: 0 30px 70px rgba(25, 48, 82, 0.12);
}

body.light-mode .project-eyebrow,
body.light-mode .tour-help,
body.light-mode .tour-help i {
  color: #3b4d66;
}

body.light-mode .landing-section + .landing-section {
  border-top-color: #d7e0eb;
}

body.light-mode .landing-form-card input,
body.light-mode .landing-form-card textarea,
body.light-mode .landing-form-card select {
  background: #f8fafc;
  border-color: #b7c6d8;
  color: #102038;
}

body.light-mode .landing-form-card label,
body.light-mode .landing-lead,
body.light-mode .landing-section-header p,
body.light-mode .landing-card p,
body.light-mode .landing-card li {
  color: #3b4d66;
}

body.light-mode .footer-brand p {
  color: #3b4d66;
}

@media (max-width: 900px) {
  .brand-logo { width: 64px; height: 64px; }
  .landing-hero { min-height: auto; padding-top: 118px; }
  .landing-hero-card { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .landing-hero-card > :not(.division-logo) { grid-column: 1; }
  .division-logo { grid-column: 1; grid-row: auto; width: min(340px, 82vw); margin: 0 auto; }
  .landing-hero-card .badge { margin-inline: auto; }
  .landing-hero h1, .landing-lead { margin-inline: auto; }
  .landing-actions { justify-content: center; }
}

@media (max-width: 700px) {
  .navbar { padding: 8px 0; }
  .brand-logo { width: 58px; height: 58px; }
  .landing-hero { padding: 104px 14px 48px; }
  .landing-hero-card { padding: 20px; }
  .landing-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .landing-actions { flex-direction: column; }
  .landing-actions .btn { width: 100%; justify-content: center; }
  .landing-section { padding: 68px 18px; }
  .project-intro { align-items: stretch; flex-direction: column; }
  .project-intro .btn { width: 100%; justify-content: center; }
  .tour-frame { aspect-ratio: 4 / 5; min-height: 500px; }
  .landing-card { min-height: auto; padding: 28px; }
  .landing-form-card form { grid-template-columns: 1fr; }
  .landing-form-card .form-field,
  .landing-form-card .buttons { grid-column: 1; }
}
