/* style-preview.css - Alternativa Visual Moderna para MasSimple */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700&family=Saira:wght@300;400;600&display=swap');

:root {
  --bg-color: #383b3f;
  --bg-card: rgba(85, 93, 101, 0.45);
  --text-primary: #f5f5f5;
  --text-secondary: #d6d6d6;
  --accent-color: #d9874a;
  --accent-hover: #c2763d;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(56, 59, 63, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --border-radius-standard: 16px;
}

body {
  font-family: 'Saira', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.title-orange {
  color: var(--accent-color) !important;
  text-transform: uppercase;
}

p, li, span {
  font-family: 'Saira', sans-serif;
  color: var(--text-secondary);
  line-height: 1.6;
}

strong {
  color: #fff;
  font-weight: 600;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--accent-hover);
}

/* Header/Navbar Premium minimalist */
.navbar-modern {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  z-index: 2000;
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
  transition: background 0.3s ease;
}

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

.logo-modern img {
  height: 68px; /* 30% más grande */
  width: auto;
  transition: filter 0.3s ease;
}
.logo-modern img:hover {
  filter: drop-shadow(0 0 8px rgba(217, 135, 74, 0.55));
}

/* Compact structured right links / icons */
.nav-right-modern {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-social-icon {
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.header-social-icon:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.nav-cta-btn {
  background: transparent;
  color: #fff;
  border: 1px solid var(--accent-color);
  padding: 8px 24px;
  border-radius: 30px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta-btn:hover {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(217, 135, 74, 0.4);
  transform: translateY(-2px);
}

/* Hamburger - Enerblock Style (minimalist line/cross) */
.hamburger-modern {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  
  z-index: 1002;
}

.hamburger-modern span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-modern.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-modern.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-modern.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Modern Offcanvas Overlay (Minimalist, structured - inspired by Enerblock) */
.offcanvas-menu-modern {
  position: fixed;
  top: 0;
  right: -100%;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: rgba(43, 46, 49, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 1001;
  padding: 155px 40px 40px 40px; /* Increased top padding by 40px (~1cm) as requested */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 35px rgba(0,0,0,0.3);
  border-bottom-left-radius: var(--border-radius-standard);
  overflow-y: auto;
}

.offcanvas-menu-modern.active {
  right: 0;
}

.close-menu-modern {
  position: absolute;
  top: 35px;
  right: 45px;
  font-size: 2.8rem;
  color: var(--text-primary);
  
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10;
}
.close-menu-modern:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

.menu-links-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-links-modern li {
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.menu-links-modern li:last-child {
  border-bottom: none;
  margin-bottom: 15px;
  padding-bottom: 0;
}

.menu-links-modern a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-links-modern a:hover,
.menu-links-modern a.active {
  color: #d9874a;
  padding-left: 10px;
}

.menu-links-modern a::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.menu-links-modern a:hover::after {
  opacity: 1;
}

/* Structured menu bottom area for contact/language info */
.menu-footer-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  font-size: 0.9rem;
}

.menu-footer-modern h5 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.menu-footer-modern p {
  margin: 0 0 5px 0;
  color: var(--text-secondary);
}

/* Premium Main Sections */
.page-content-modern {
  padding-top: 120px;
}

/* Modernized Hero Section with Floating window illustrations */
.hero-modern {
  padding: 60px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-heading-modern {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-subtext-modern {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 35px;
}

.cta-group-modern {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap; /* Prevent line wrap for compactness */
}
@media (max-width: 576px) {
  .cta-group-modern {
    flex-wrap: wrap;
  }
}

.btn-modern-solid {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 135, 74, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-modern-solid:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(217, 135, 74, 0.4);
}

.btn-modern-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 14px 36px;
  border-radius: 30px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-modern-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px);
  background: rgba(217, 135, 74, 0.05);
}

/* Glassmorphism Feature Cards */
.card-modern-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  margin-top: 60px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .card-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .card-modern-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-modern {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-standard);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(217, 135, 74, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover effects only applied to clickable cards */
.card-modern-clickable {
  
}

.card-modern-clickable:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.card-modern-clickable:hover::before {
  opacity: 1;
}

.card-icon-modern {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.card-modern-clickable:hover .card-icon-modern {
  transform: scale(1.1);
}

.card-modern h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.card-modern p {
  font-size: 1rem;
  margin: 0;
  color: var(--text-secondary);
}

/* Advanced graphics section (Professionals + floating nodes) */
.section-visuals-modern {
  padding: 100px 0;
  border-top: none;
  background: transparent;
}

.visual-item-modern {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 110px;
}

.visual-item-modern:last-child {
  margin-bottom: 0;
}

.visual-item-modern:nth-child(even) {
  flex-direction: row-reverse;
}

.visual-content-modern {
  flex: 1;
}

.visual-img-container {
  flex: 1.2;
  position: relative;
}

.visual-img-modern {
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
}

.visual-label {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: block;
}

.visual-title {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
  line-height: 1.15;
}

.visual-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 520px;
}

/* Footer modern layout */
.footer-modern {
  background: var(--bg-color);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
}

.footer-content-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
}

.footer-col-modern h4 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1.5px;
}

.footer-links-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links-modern a {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.footer-links-modern a:hover,
.footer-links-modern a.active {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom-modern {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  text-align: center; /* Centrar copyright */
}

.footer-bottom-modern p {
  margin: 0 auto;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
}

/* Logo Slider Infinite Animation */
.logo-slider-container {
  overflow: hidden;
  max-width: 70%; /* 30% narrower */
  margin: 0 auto;
  padding: 30px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 50px;
  width: calc(250px * 18);
  animation: scrollSlider 35s linear infinite;
}

.logo-slide {
  flex: 0 0 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 24px;
  filter: grayscale(100%) opacity(0.3);
  transition: all 0.4s ease;
}

.logo-slide img:hover {
  filter: grayscale(0%) opacity(1) brightness(1.2);
  transform: scale(1.1);
}

@keyframes scrollSlider {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 9)); }
}

/* Glassmorphism CTA */
.glassmorphism-cta {
  background: linear-gradient(135deg, rgba(217, 135, 74, 0.15) 0%, rgba(56, 59, 63, 0.25) 100%) !important;
  border-color: rgba(217, 135, 74, 0.3) !important;
  box-shadow: 0 15px 45px rgba(217, 135, 74, 0.08) !important;
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.85); /* Más sutil y transparente */
  backdrop-filter: blur(10px); /* Desenfoque más suave */
  z-index: 10005;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-transition-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-box {
  background: rgba(56, 59, 63, 0.4) !important; /* Glassmorphic sutil y suave */
  backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  width: 384px !important; /* 20% más ancho */
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 576px) {
  .preloader-box {
    width: 307px !important; /* 20% más angosto en mobile (384 * 0.8) */
    padding: 30px 20px;
  }
}

.preloader-box img {
  max-width: 150px; /* Tamaño del logo del preloader balanceado */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(217, 135, 74, 0.3));
}

.preloader-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  color: #bbb;
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 25px;
  font-weight: 600;
}

.preloader-bar-container {
  width: 100%;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preloader-bar {
  height: 100%;
  background: linear-gradient(90deg, #d9874a, #ffb37a);
  width: 0%;
  border-radius: 10px;
  transition: width 0.1s linear;
}

.preloader-text {
  font-family: 'Barlow Condensed', sans-serif;
  color: #aaa;
  letter-spacing: 2px;
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}


@media(max-width: 991px) {
  .visual-item-modern, .visual-item-modern:nth-child(even) {
    flex-direction: column;
    gap: 40px;
  }
  .hero-heading-modern {
    font-size: 3rem;
  }
  .visual-title {
    font-size: 2.2rem;
  }
}

/* Optimized Container Widths for Different Breakpoints */
@media (min-width: 1200px) and (max-width: 1599px) {
  /* Notebooks (1440px width) compacted for focus */
  .container {
    max-width: 1080px !important;
  }
}
@media (min-width: 1600px) {
  /* Large monitors (1920px) 30% wider */
  .container {
    max-width: 1440px !important;
  }
}

/* 5-Column Responsive Team Grid */
@media (min-width: 1200px) {
  .col-team-5 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}

/* Brighter Team Card Text Styles */
.team-desc-modern {
  color: #e0e0e0 !important;
  font-size: 0.92rem;
  line-height: 1.5;
}

.team-quote-modern {
  color: #ffb37a !important;
  font-size: 0.82rem;
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  margin-top: 12px;
  line-height: 1.4;
}

/* Custom Interactive Cursor (Zoom + Elastic + Glow) */
.custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(217, 135, 74, 0.6);
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background-color 0.3s ease, 
              border 0.3s ease,
              box-shadow 0.3s ease;
}
.custom-cursor.cursor-clickable {
  width: 42px;
  height: 42px;
  background-color: rgba(217, 135, 74, 0.12);
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(217, 135, 74, 0.8);
}

/* Home Large Image Scale Reduction (30% smaller) */
.visual-img-modern {
  max-width: 70% !important;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Uniform Round Corners across all windows and cards of the site */
.card-modern, .cta-banner, .zoom-modal-content, .preloader-box, .offcanvas-menu-modern, .team-card, .custom-img, .rounded {
  border-radius: var(--border-radius-standard) !important;
}

/* Accordion Custom Styling & Hover (Roll over) Effects */
.accordion-item {
  background: transparent !important;
}

.accordion-button {
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius-standard) !important;
  padding: 20px 24px !important;
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color) !important;
  background: rgba(85, 93, 101, 0.6) !important;
  box-shadow: 0 8px 25px rgba(217, 135, 74, 0.2) !important;
  color: var(--accent-color) !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(217, 135, 74, 0.12) !important;
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}


/* Custom Subtle Scrollbar within the brand's palette */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(217, 135, 74, 0.25);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 135, 74, 0.6);
}

/* Firefox support */
html, body, .offcanvas-customize-modern, .offcanvas-menu-modern {
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 135, 74, 0.25) rgba(30, 30, 30, 0.3);
}

/* ==========================================
   CUSTOMIZE EXPERIENCE STYLES
   ========================================== */

/* Left Off-Canvas Panel */
.offcanvas-customize-modern {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  height: 100%;
  background: rgba(43, 46, 49, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10006;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

@media (max-width: 480px) {
  .offcanvas-customize-modern {
    width: 100%;
    left: -100%;
    padding: 30px 20px;
  }
}

.offcanvas-customize-modern.open {
  transform: translateX(400px);
}
@media (max-width: 480px) {
  .offcanvas-customize-modern.open {
    transform: translateX(100%);
  }
}

.close-customize-modern {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(43, 46, 49, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.close-customize-modern:hover {
  background: var(--accent-color) !important;
  color: #fff !important;
  transform: translateY(-3px);
}

.customize-content-modern h4 {
  font-family: 'Barlow Condensed', sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.customize-desc {
  font-size: 0.88rem;
  color: #aaa;
  margin-bottom: 12px;
}

/* Background selector grid */
.background-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bg-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.bg-option-btn:hover {
  border-color: rgba(217, 135, 74, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.bg-option-btn.active {
  border-color: var(--accent-color);
  background: rgba(217, 135, 74, 0.1);
}

.bg-preview {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-label {
  font-size: 0.72rem;
  color: #ccc;
  font-weight: 500;
  text-align: center;
}

/* Typography buttons */
.font-options-row {
  display: flex;
  gap: 8px;
}

.font-option-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #ccc;
  padding: 8px;
  
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.font-option-btn:hover {
  border-color: rgba(217, 135, 74, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.font-option-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

/* Music Loop items list */
.music-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.music-option-item {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: #ccc;
  padding: 10px 14px;
  text-align: left;
  
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.music-option-item:hover {
  border-color: rgba(217, 135, 74, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.music-option-item.active {
  border-color: var(--accent-color);
  background: rgba(217, 135, 74, 0.1);
  color: var(--accent-color);
  font-weight: 600;
}

/* Header button trigger */
.btn-customize-exp {
  background: linear-gradient(135deg, var(--accent-color), #f7a05f);
  color: #fff !important;
  border: none;
  border-radius: 20px;
  padding: 5px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  margin-right: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(217, 135, 74, 0.25);
}

.btn-customize-exp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 135, 74, 0.45);
}

/* Logo container & Audio-reactive wave next to logo */
.logo-modern-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.audio-wave-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-left: 19px; /* Mueve el control de volumen ~0.5 cm a la derecha */
}

.audio-wave-container.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  display: none !important;
}

.audio-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  width: 32px;
}

.audio-wave-bars span {
  display: block;
  width: 2.5px;
  background-color: var(--accent-color);
  border-radius: 2px;
  animation: bounceWave 1s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.audio-wave-bars span:nth-child(1) { height: 10%; animation-delay: 0.1s; }
.audio-wave-bars span:nth-child(2) { height: 40%; animation-delay: 0.3s; }
.audio-wave-bars span:nth-child(3) { height: 90%; animation-delay: 0.5s; }
.audio-wave-bars span:nth-child(4) { height: 60%; animation-delay: 0.2s; }
.audio-wave-bars span:nth-child(5) { height: 20%; animation-delay: 0.4s; }

.audio-wave-container.playing .audio-wave-bars span {
  animation-play-state: running;
}

@keyframes bounceWave {
  0% { height: 15%; }
  100% { height: 100%; }
}

.audio-volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-mute-btn {
  background: none;
  border: none;
  color: #ccc;
  
  padding: 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.audio-mute-btn:hover {
  color: var(--accent-color);
}

.audio-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 75px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 4px var(--accent-color);
}

/* Tiled Background configurations (with premium sutil blur, scale correction, and brightness adjustments) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
  background-position: top left;
  background-repeat: repeat;
  background-size: 455px 455px;
  background-attachment: fixed;
  transition: background-image 0.5s ease, filter 0.5s ease, transform 0.5s ease;
  filter: blur(0px) brightness(1);
  opacity: 0.7;
  transform: scale(1);
}

body.bg-tiled-bg1::before {
  background-image: url('../customize/background/bg1.png') !important;
  filter: blur(0.7px) brightness(0.4) !important;
  transform: scale(1.02) !important;
}

body.bg-tiled-bg2::before {
  background-image: url('../customize/background/bg2.png') !important;
  filter: blur(0.7px) brightness(0.4) !important;
  transform: scale(1.02) !important;
}

body.bg-tiled-bg3::before {
  background-image: url('../customize/background/bg3.png') !important;
  filter: blur(0.7px) brightness(0.4) !important;
  transform: scale(1.02) !important;
}

body.bg-tiled-bg4::before {
  background-image: url('../customize/background/bg4.png') !important;
  filter: blur(0.7px) brightness(0.4) !important;
  transform: scale(1.02) !important;
}

body.bg-tiled-bg5::before {
  background-image: url('../customize/background/bg5.png') !important;
  filter: blur(0.7px) brightness(0.4) !important;
  transform: scale(1.02) !important;
}

/* Typography scale adjustments (Root Level fluid REM Scaling) */
html.font-scale-1 {
  font-size: 108% !important; /* ~8% larger globally */
}
html.font-scale-2 {
  font-size: 116% !important; /* ~16% larger globally */
}
html.font-scale-3 {
  font-size: 125% !important; /* ~25% larger globally */
}

/* ==========================================
   INTERACTIVE EXPERIENCE DEPLOYMENTS & SCROLLS
   ========================================== */

/* Customize sections thin dividing lines */
.customize-section-modern {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
  margin-bottom: 20px !important;
}
.customize-section-modern:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

/* Header deployment sequence animations */
.logo-modern-container, .nav-right-modern {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-modern-container {
  transform: translateX(-25px);
}

.nav-right-modern {
  transform: translateX(25px);
}

body.header-deployed .logo-modern-container,
body.header-deployed .nav-right-modern {
  opacity: 1;
  transform: translateX(0);
}

/* Scroll Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Carousel Fade Transition */
.card-modern .carousel.slide .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.8s;
}

.card-modern .carousel.slide .carousel-item.active,
.card-modern .carousel.slide .carousel-item-next.carousel-item-start,
.card-modern .carousel.slide .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.card-modern .carousel.slide .active.carousel-item-start,
.card-modern .carousel.slide .active.carousel-item-end {
  opacity: 0;
  left: 0;
  transform: none;
}

.card-modern .carousel.slide .carousel-item-next,
.card-modern .carousel.slide .carousel-item-prev,
.card-modern .carousel.slide .carousel-item.active,
.card-modern .carousel.slide .active {
  transform: none;
}

/* HIDE DEFAULT MOUSE CURSOR (ONLY DESKTOP where custom-cursor is used) */
@media (min-width: 768px) {
  html, body, a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
  }
}

/* PREMIUM BACK TO TOP BUTTON */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(43, 46, 49, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: none; /* Will use custom dot */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.back-to-top-btn.visible {
  opacity: 0;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: none;
}

/* HIDE CUSTOMIZER AND MUSIC ON MOBILE FOR CLEANER LAYOUT */
@media (max-width: 767px) {
  .audio-wave-container, 
  .btn-customize-exp {
    display: none !important;
  }
}

/* NEW UTILITY: SUBTLE SECTION LAYER BACKGROUND */
.section-subtle-bg {
  background: rgba(40, 43, 48, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 60px 0;
  margin-bottom: 40px;
}

/* LOGO ROLLOVER GLARE AND ZOOM */
.logo-link-interactive {
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  
}

.logo-glare-overlay {
  position: absolute;
  top: 0;
  left: -120%;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
}

/* CAJA DESTACADA MODERN (Restored clean transparent containment, unified to 1100px to preserve image sizes while keeping layouts centered and aligned)   margin: 0 auto !important; */
.caja-destacada-modern {
  max-width: 1100px !important;

  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.visual-item-modern.caja-destacada-modern {
  margin-bottom: 110px !important; /* Restore original standard spacing */
}

@media (max-width: 768px) {
  .caja-destacada-modern {
    padding: 0 !important;
  }
}

/* UNIFIED HOMOGENEOUS SECTION SPACING (PREMIUM ~4CM) */
.section-homogeneous-spacing {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: block !important;
}

/* Remove legacy card margins to preserve perfect symmetry */
.section-homogeneous-spacing .card-modern-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Optical adjustment for sections with illustration whitespace perception .section-optically-adjusted {
  padding-top: 120px !important;
  padding-bottom: 170px !important;
} */


/* Utilities to halve the spacing for contiguous light blocks */
.section-half-spacing-bottom {
  padding-bottom: 75px !important;
}
.section-half-spacing-top {
  padding-top: 75px !important;
}


/* DYNAMIC LIGHTING SYSTEM (Premium UX) */
:root {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

/* Global Atmosphere: A very subtle glow that follows the cursor across the site */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--cursor-x) var(--cursor-y),
    rgba(255, 102, 0, 0.035),
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: plus-lighter;
}

/* Card Spotlight: Cards light up internally when the mouse is near */
.card-modern, 
.cta-section-modern, 
.card-portfolio, 
.laboratorio-card,
.team-member-card {
  position: relative;
}

.card-modern::before,
.cta-section-modern::after,
.card-portfolio::before,
.laboratorio-card::before,
.team-member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 102, 0, 0.08),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.card-modern:hover::before,
.cta-section-modern:hover::after,
.card-portfolio:hover::before,
.laboratorio-card:hover::before,
.team-member-card:hover::before {
  opacity: 1;
}

/* Ensure content stays above the lighting layer */
.card-modern > *, 
.cta-section-modern > *, 
.card-portfolio > *, 
.laboratorio-card > *,
.team-member-card > * {
  position: relative;
  z-index: 2;
}
/* Transparency for large PNG illustrations to blend better with backgrounds */
.hover-iso-3d {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hover-iso-3d:hover {
  opacity: 1;
}

/* Removed duplicate timeline block */

/* Remove legacy card margins to preserve perfect symmetry */
.section-homogeneous-spacing .card-modern-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Optical adjustment for sections with illustration whitespace perception .section-optically-adjusted {
  padding-top: 120px !important;
  padding-bottom: 170px !important;
} */


/* Utilities to halve the spacing for contiguous light blocks */
.section-half-spacing-bottom {
  padding-bottom: 75px !important;
}
.section-half-spacing-top {
  padding-top: 75px !important;
}


/* DYNAMIC LIGHTING SYSTEM (Premium UX) */
:root {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

/* Global Atmosphere: A very subtle glow that follows the cursor across the site */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--cursor-x) var(--cursor-y),
    rgba(255, 102, 0, 0.035),
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: plus-lighter;
}

/* Card Spotlight: Cards light up internally when the mouse is near */
.card-modern, 
.cta-section-modern, 
.card-portfolio, 
.laboratorio-card,
.team-member-card {
  position: relative;
}

.card-modern::before,
.cta-section-modern::after,
.card-portfolio::before,
.laboratorio-card::before,
.team-member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(255, 102, 0, 0.08),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.card-modern:hover::before,
.cta-section-modern:hover::after,
.card-portfolio:hover::before,
.laboratorio-card:hover::before,
.team-member-card:hover::before {
  opacity: 1;
}

/* Ensure content stays above the lighting layer */
.card-modern > *, 
.cta-section-modern > *, 
.card-portfolio > *, 
.laboratorio-card > *,
.team-member-card > * {
  position: relative;
  z-index: 2;
}
/* Transparency for large PNG illustrations to blend better with backgrounds */
.hover-iso-3d {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hover-iso-3d:hover {
  opacity: 1;
}

/* Horizontal Timeline for Process Steps */
.timeline-horizontal-container {
  position: relative;
  width: 100%;
  padding: 40px 0;
  margin-top: 20px;
}

/* Connecting line */
.timeline-horizontal-line {
  position: absolute;
  top: 92px; /* Centered relative to the circle (50px padding + 42px half circle height) */
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(217, 135, 74, 0.1) 0%, rgba(217, 135, 74, 0.8) 50%, rgba(217, 135, 74, 0.1) 100%);
  z-index: 1;
}

.timeline-horizontal-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
}

.timeline-horizontal-step {
  flex: 1;
  text-align: center;
  padding: 0 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-step-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(30, 32, 35, 0.85);
  border: 2px solid rgba(217, 135, 74, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(217, 135, 74, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-step-icon-wrap i {
  font-size: 2rem;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.timeline-step-number {
  position: absolute;
  top: -12px;
  background: #d9874a;
  color: #1e2023;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 2px 10px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(217, 135, 74, 0.4);
  letter-spacing: 0.5px;
}

.timeline-step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  color: #d9874a;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.timeline-step-desc {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 200px;
}

/* Responsive optimization: stack vertically on small viewports */
@media (max-width: 991px) {
  .timeline-horizontal-steps {
    flex-direction: column;
    gap: 40px;
  }
  .timeline-horizontal-line {
    top: 5%;
    bottom: 5%;
    left: 55px; /* Aligned relative to vertical icon stack */
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(217, 135, 74, 0.1) 0%, rgba(217, 135, 74, 0.8) 50%, rgba(217, 135, 74, 0.1) 100%);
  }
  .timeline-horizontal-step {
    flex-direction: row;
    text-align: left;
    padding: 0;
    align-items: flex-start;
  }
  .timeline-step-icon-wrap {
    margin-bottom: 0;
    margin-right: 25px;
    flex-shrink: 0;
  }
  .timeline-step-desc {
    max-width: 100%;
  }
}

/* Floating WhatsApp Button (Subtle & Glassmorphism) */
.whatsapp-float-modern {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transform: translateZ(0);
}

.whatsapp-float-modern:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  opacity: 1;
  transform: translateY(-5px) scale(1.05);
}

@media (max-width: 768px) {
  .whatsapp-float-modern {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}


/* Ensure strong tags inside orange titles are also orange */
.title-orange strong {
  color: #d9874a !important;
}

/* Footer Mobile Adjustments */
@media (max-width: 768px) {
  .footer-content-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footer-col-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .footer-col-modern p {
    margin-left: auto;
    margin-right: auto;
  }
  /* Hide the navigation menu column (second child) in mobile */
  .footer-content-modern .footer-col-modern:nth-child(2) {
    display: none !important;
  }
}
