/* Main Styles & Home Page Components */
@import url("variables.css");
@import url("base.css");

/* Header & Navigation Context */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

/* Hero Section - Normal Scroll */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ebe9e9 10%, #ffffff 60%, #d1ddfa 100%);
  padding: 0;
  overflow: hidden;
}

.hero > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ---- Hero Right Side ---- */
.hero-right {
  display: none; /* Oculto en móvil por defecto */
}

@media (min-width: 1024px) {
  .hero-right {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    flex-shrink: 0;
    max-width: 480px;
    position: relative;
  }

  /* Texto Vertical */
  .hero-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .hero-vertical-text span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    line-height: 1.4;
  }

  /* Contenedor visual (badge + imagen + logo) */
  .hero-right-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  /* Badge "BrosMont Solutions" */
  .hero-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-end; /* Alinea a la derecha */
    gap: 0.5rem;
    background: var(--bg-tertiary);
    color: #fff;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: -1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  .hero-badge-icon {
    font-size: 1rem;
  }

  /* Imagen Principal */
  .hero-main-image {
    border-radius: 16px;
    overflow: hidden;
    max-width: 340px;
  }

  .hero-main-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  /* Logo Pequeño */
  .hero-small-logo {
    position: absolute;
    bottom: -10px;
    right: -30px;
    width: 110px;
    height: 110px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 12px;
  }

  .hero-small-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Animación del Logo SVG */
  .brosmont-animated-logo {
    width: 100%;
    height: 100%;
  }

  .path-draw {
    stroke: var(--bg-tertiary);
    stroke-width: 4000; /* Grosor proporcional a viewBox */
    fill: transparent;
    stroke-dasharray: 5000000;
    stroke-dashoffset: 5000000;
    animation: drawLogo 5s forwards ease-in-out;
  }

  @keyframes drawLogo {
    0% {
      stroke-dashoffset: 5000000;
      fill: transparent;
    }
    50% {
      stroke-dashoffset: 0;
      fill: transparent;
      stroke: var(--bg-tertiary);
    }
    70% {
      stroke-dashoffset: 0;
      fill: url(#logoGradient);
      stroke: transparent;
    }
    100% {
      stroke-dashoffset: 0;
      fill: url(#logoGradient);
      stroke: transparent;
    }
  }
}

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

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: var(--space-sm);
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-cta {
  background-color: var(--cta-orange);
  color: white;
  padding: 1rem 2.5rem;
}

.btn-cta:hover {
  background-color: #e66000; /* Un tono un poco más oscuro para el hover */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

/* Services Section */
.services {
  background-color: var(--bg-secondary);
  position: relative;
  padding: var(--space-xl) 0;
}

/* Mobile Content (Default) */
.mobile-only-content {
  display: block;
}

.desktop-only-slider {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-primary);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.service-card h3 {
  margin: var(--space-sm) 0;
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.29;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.btn-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cta-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-link:hover {
  gap: 0.8rem;
  color: #e66000;
}

/* Trust Section */
.trust {
  background-color: var(--bg-primary);
  padding: var(--space-xl) 0;
}

/* Footer Section */
.footer {
  background-color: var(--accent);
  color: white;
  padding: var(--space-xl) 0;
}

.footer ul li {
  margin-bottom: var(--space-xs);
}

.footer ul li a {
  position: relative;
  display: inline-block;
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.footer ul li a::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 12px;
  height: 2px;
  background-color: var(--cta-orange);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
  opacity: 0;
}

.footer ul li a:hover {
  transform: translateX(25px);
  opacity: 1;
  color: white;
}

.footer ul li a:hover::before {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}

/* Reveal Animation */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.js-active .reveal {
  opacity: 0;
  transform: translateY(30px);
}

.js-active .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global Navigation Update */
.logo {
  position: fixed;
  top: 20px;
  left: var(--space-md);
  z-index: 1100;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(1px 0 0 white) drop-shadow(-1px 0 0 white)
    drop-shadow(0 1px 0 white) drop-shadow(0 -1px 0 white);
}

.nav-links {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 1.5rem 2rem 1.5rem; /* Menos espacio a la izquierda para ganar ancho */
  transition: var(--transition-smooth);
  z-index: 1050;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

/* PC View Styles */
@media (min-width: 1024px) {
  /* Hide mobile content */
  .mobile-only-content {
    display: none;
  }

  /* Show desktop slider */
  .desktop-only-slider {
    display: block;
    height: 100%; /* Critical for sticky behavior within 400vh parent */
    width: 100%;
    z-index: 10;
    position: relative;
  }

  .header {
    padding: 0;
    background: transparent !important;
  }

  .nav-container {
    padding-top: 0 !important;
  }

  .logo {
    top: 20px;
    margin-top: 0;
  }

  .header.scrolled {
    background-color: rgba(
      255,
      255,
      255,
      0.4
    ) !important; /* Más transparente */
    backdrop-filter: blur(10px);
    padding: 0; /* Sin padding para que no genere "barra" */
  }

  .hero {
    align-items: center;
  }

  /* Split Slider Styles */
  #servicios {
    height: 500vh; /* Scroll space for 5 slides */
    padding: 0;
    scroll-snap-align: start; /* Optional: snap to start of section */
    position: relative; /* Indispensable para los marcadores de anclaje */
  }

  .split-slider-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
  }

  .slider-column {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .slider-inner {
    width: 100%;
    /* Height will be handled by JS transform or content flow */
    /* Actually, we want absolute positioning or transform */
    /* Simple approach: Flex column */
    display: flex;
    flex-direction: column;
    height: 500vh; /* 5 * 100vh */
    background-color: var(--bg-primary);
  }

  .slider-item {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Imagen a sangre (full-bleed) en desktop */
  }

  .slider-left .slider-inner {
    transform: translateY(0); /* Will move up */
  }

  .slider-right .slider-inner {
    transform: translateY(-400vh); /* Start from bottom, move down (5 slides) */
    background-color: var(--bg-secondary);
  }

  /* Initial state for right side: We want the first item (Ventas) to be visible? 
       No, the user wants "movement in opposite direction". 
       Left: 1 (Web) -> 2 (Soft) -> 3 (Audit) -> 4 (Ventas) -- moves UP.
       Right: 1 (Web img) -> 2 (Soft img) -> 3 (Audit img) -> 4 (Ventas img).
       Wait, usually right moves DOWN. So it starts at the top (showing last item?) or bottom?
       GlobeFarer logic:
       Left (Text): Starts at Item 1. Scrolls down -> Item 2 appears from bottom.
       Right (Image): Starts at Item 1 image. Scrolls down -> Item 2 image appears from TOP.
       
       So Right side needs to be stacked 4->3->2->1 visually? Or 1->2->3->4 but moved differently?
       
       Let's use the transform logic from JS:
       Right side starts at translateY(-300vh) (showing last item) and moves to 0?
       No, if right moves opposite to left:
       Left moves 0 -> -300vh.
       Right moves -300vh -> 0?
       Let's re-verify the JS logic I wrote before. 
       `leftContent.style.transform = translateY(-${moveAmount}vh)`
       `rightContent.style.transform = translateY(${moveAmount - 300}vh)`
       
       If progress=0 (start):
       Left: 0.
       Right: -300vh (showing 4th item?).
       
       If progress=1 (end):
       Left: -300vh.
       Right: 0 (showing 1st item?).

       This means right side needs items in REVERSE order in HTML if we want visual matching 1-1.
       Let's check HTML.
       In HTML I put Right side images inverted: 4 (Ventas), 3 (Audit), 2 (Software), 1 (Web).
       So at start (-300vh), it shows the last item in HTML... which is Item 1 (Web).
       Perfect.
    */

  .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Sin bordes redondeados */
    box-shadow: none;
  }

  .text-content {
    padding: 0 15%; /* Espaciado interno para compensar el padding del item */
  }

  .text-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
  }

  .has-mask-fill {
    background-image: linear-gradient(
      to right,
      var(--text-primary) 50%,
      rgba(0, 0, 0, 0.08) 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    display: inline-block;
    transition: none;
  }

  /* Regla específica para Auditoría: Títulos blancos en fondos oscuros */
  .audit-page .has-mask-fill.text-white {
    background-image: linear-gradient(
      to right,
      #ffffff 50%,
      rgba(255, 255, 255, 0.15) 50%
    );
  }

  /* Efecto personalizado: Negro a Blanco para fondos oscuros */
  .has-mask-fill.mask-black-to-white {
    background-image: linear-gradient(
      to right,
      #ffffff 50%,
      #000000 50%
    ) !important;
  }

  .text-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
  }

  /* Menu sidebar width */
  .nav-links {
    width: 30%; /* Aumentado de 25% a 30% para dar más espacio a los textos largos */
    left: -30%;
  }
  .nav-links.active {
    left: 0;
  }

  .header .menu-toggle {
    display: none;
  }
}

/* Base Link Styles */
.nav-links a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  transition: var(--transition-smooth);
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 12px;
  height: 2px;
  background-color: var(--cta-orange);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
  opacity: 0;
}

.nav-links a:not(.lang-flag):hover {
  transform: translateX(25px);
  color: var(--accent);
}

.nav-links a:not(.lang-flag):hover::before {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.nav-dropdown .dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--space-md);
}

.dropdown-toggle::after {
  content: "▾";
  margin-left: 10px;
  font-size: 0.8rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    padding 0.35s ease;
}

.nav-dropdown.active .dropdown-toggle {
  margin-bottom: 0.75rem;
}

.nav-dropdown.active .dropdown-menu {
  max-height: 400px;
  opacity: 1;
  padding-bottom: var(--space-md);
}

.dropdown-menu li a {
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  margin-bottom: 5px !important;
  opacity: 0.8;
}

.dropdown-menu li a:hover {
  opacity: 1;
  transform: translateX(10px) !important;
}

@media (min-width: 1024px) {
  .nav-dropdown.active .dropdown-menu {
    margin-left: 15px;
  }
}

/* Mobile Adjustments (Clean Re-apply) */
@media (max-width: 768px) {
  section {
    padding: var(--space-lg) 0;
  }

  /* Ensure logo is hidden on mobile per request */
  .logo {
    display: none;
  }

  /* Hamburger visible and fixed */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1200;
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 20px;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
    border: 1px solid white;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    width: 90%; /* Aumentado para dar más espacio */
    left: -90%;
    align-items: flex-start; /* Alineado a la izquierda como en desktop */
    padding: 5rem 1.5rem 2rem 1.5rem; /* Padding reducido y ajustado */
  }

  .nav-links.active {
    left: 0;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* Scroll to Top Button (Circular Timeline) */
.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 200ms linear;
  background-color: var(--bg-primary); /* Ensure contrast */
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: sans-serif; /* Simple arrow */
  content: "↑";
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  color: var(--text-primary);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  transition: all 200ms linear;
}

.progress-wrap:hover::after {
  opacity: 1; /* Keep visible or change color */
  color: var(--accent);
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: var(--accent);
  stroke-width: 4;
  box-sizing: border-box;
  transition: all 200ms linear;
}

/* ===== SECCIONES FUNNEL ===== */

/* Diagnóstico Section */
.diagnostico {
  padding: var(--space-xl) 0;
  background-color: var(--bg-primary);
}

.diagnostico-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.diagnostico-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
  transition: var(--transition-smooth);
}

.diagnostico-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.diagnostico-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.diagnostico-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

/* Beneficios Section */
.beneficios {
  padding: var(--space-xl) 0;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.beneficio-item {
  padding: var(--space-md);
  border-left: 3px solid var(--accent);
  background: var(--bg-primary);
  border-radius: 0 8px 8px 0;
  transition: var(--transition-smooth);
}

.beneficio-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.beneficio-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: "Outfit", sans-serif;
}

.beneficio-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

/* CTA Final Section */
.cta-final {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, #0a0a14 0%, #04284d 60%, #0a0a14 100%);
  color: #ffffff;
  text-align: center;
}

.cta-final h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: var(--space-sm);
}

.cta-final p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto var(--space-md);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-final .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.cta-final .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Auditoria Page Styles
   ========================================================================== */

.audit-page {
  scroll-behavior: smooth;
}

/* 1. Audit Hero */
.audit-hero {
  background: #09090b;
  color: #ffffff;
  padding: calc(var(--space-xl) / 1.5) 0 var(--space-xl);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.audit-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.08) 0%,
    transparent 70%
  );
  z-index: 1;
}

.audit-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 2;
}

.audit-hero-content .badge {
  background: rgba(255, 107, 0, 0.1);
  color: var(--cta-orange);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: inline-block;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.audit-hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.audit-hero-content h1 .highlight {
  color: var(--cta-orange);
  position: relative;
  white-space: nowrap;
}

.audit-hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 600px;
}

/* Hero Form */
.audit-hero-form .form-container {
  background: #ffffff;
  padding: var(--space-md);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
}

.audit-hero-form h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.input-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.input-group input:focus {
  outline: none;
  border-color: var(--cta-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.w-full {
  width: 100%;
  padding: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* 2. Pillars Section */
.audit-pillars {
  background: var(--bg-secondary);
  padding: var(--space-xl) 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.pillar-card {
  background: #ffffff;
  padding: var(--space-md);
  border-radius: 12px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 0, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.pillar-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.1;
  position: absolute;
  top: 20px;
  right: 20px;
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pillar-icon img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

/* 3. Audit Trust */
.audit-trust {
  padding: var(--space-xl) 0;
}

.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.trust-image img {
  width: 100%;
  border-radius: 12px;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
}

.trust-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: var(--space-md);
}

.trust-list h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

.trust-list .icon {
  font-size: 1.5rem;
}

/* 4. Audit Steps */
.audit-steps {
  background: #09090b;
  color: #ffffff;
  padding: var(--space-xl) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  position: relative;
}

.step-item {
  text-align: center;
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--cta-orange);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.step-item h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.step-item p {
  color: rgba(255, 255, 255, 0.6);
}

/* 5. Testimonials */
.audit-testimonials {
  padding: var(--space-xl) 0;
  background-color: #ffffff;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.testimonial-card {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: 8px;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--cta-orange);
  opacity: 0.2;
  font-family: serif;
  position: absolute;
  top: 10px;
  left: 20px;
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.client-info {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* 6. FAQ Section */
.audit-faq {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  outline: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--cta-orange);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-content {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 7. CTA Final Audit */
.audit-cta-final {
  padding: var(--space-xl) 0;
}

.cta-card {
  background: linear-gradient(135deg, #09090b 0%, #04284d 100%);
  padding: var(--space-lg);
  border-radius: 16px;
  text-align: center;
  color: #ffffff;
}

.cta-card h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Responsive Audit */
@media (max-width: 1024px) {
  .audit-hero-grid,
  .trust-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .audit-hero {
    text-align: center;
    padding-top: var(--space-xl);
  }

  .audit-hero-content {
    margin: 0 auto;
  }

  .audit-hero-content p {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pillars-grid,
  .steps-grid,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .audit-hero-content h1 {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   Página de Desarrollo de Software
   ========================================================================== */

.software-page {
  scroll-behavior: smooth;
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.software-problems {
  padding: var(--space-xl) 0;
  background: var(--bg-primary);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.problem-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-md);
  border-left: 4px solid #ff4d4d;
  transition: var(--transition-smooth);
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.problem-card h4 {
  color: #cc0000;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

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

@media (max-width: 1200px) {
  .software-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Legal Page Styles */
.legal-page {
  padding: var(--space-xl) 0;
  background-color: var(--bg-primary);
}

.legal-page h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content article {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.legal-content article:last-child {
  border-bottom: none;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: var(--space-sm) 0 var(--space-xs);
}

.legal-content p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.legal-content ul {
  list-style: disc;
  margin-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem var(--space-md);
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__text p:first-child {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: #fff;
}

.cookie-banner__text a {
  color: var(--cta-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

.cookie-banner__text a:hover {
  color: #ff8f3f;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.cookie-btn--accept-contrast {
  background: #c2410c; /* Color específico para cumplir contraste WCAG AA */
  color: #fff;
}

.cookie-btn--accept-contrast:hover {
  background: #a3370a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194, 65, 12, 0.35);
}

.cookie-btn--reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn--reject:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    padding: 0.75rem 1rem;
  }
}

/* ==========================================================================
   Página de Contacto
   ========================================================================== */

/* ---- Hero ---- */
.contact-hero {
  padding: calc(var(--space-xl) * 1.5) 0 var(--space-xl);
  background: var(--bg-primary);
  overflow: hidden;
}

.contact-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.08);
  color: var(--cta-orange);
  border: 1px solid rgba(255, 107, 0, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.contact-badge::before {
  content: "🌎";
}

.contact-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.contact-accent {
  color: var(--cta-orange);
}

.contact-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-md);
}

.contact-hero__stats {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

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

.contact-stat__num {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  color: var(--text-primary);
  line-height: 1;
}

.contact-stat__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Globo visual */
.contact-hero__globe {
  display: flex;
  justify-content: center;
  align-items: center;
}

.globe-visual {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.5;
  animation: globePulse 6s ease-in-out infinite;
}

.globe-ring--1 {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.globe-ring--2 {
  width: 70%;
  height: 70%;
  animation-delay: 1.5s;
  border-color: rgba(255, 107, 0, 0.3);
}

.globe-ring--3 {
  width: 40%;
  height: 40%;
  animation-delay: 3s;
  border-color: rgba(255, 107, 0, 0.5);
}

@keyframes globePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.8;
  }
}

.globe-dots {
  position: absolute;
  inset: 0;
}

.globe-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
}

.globe-dot--active {
  background: var(--cta-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 107, 0, 0.05);
  }
}

.globe-label {
  position: absolute;
  bottom: -2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---- Grid principal ---- */
.contact-main {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* ---- Formulario ---- */
.contact-form-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
}

.contact-form-wrap h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.contact-form-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group label span {
  color: var(--cta-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cta-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--cta-orange);
  margin-top: 2px;
  cursor: pointer;
}

.form-consent a {
  color: var(--cta-orange);
  text-decoration: underline;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-submit .btn-icon {
  transition: transform 0.3s ease;
}

.contact-submit:hover .btn-icon {
  transform: translateX(5px);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
}

.form-feedback--error {
  display: block;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-feedback--success {
  display: block;
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

/* ---- Aside de información ---- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-info__cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cinfo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.cinfo-card:hover {
  transform: translateX(6px);
  border-color: var(--cta-orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cinfo-card--whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
}

.cinfo-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.7);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.08);
}

.cinfo-card--whatsapp .cinfo-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.cinfo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 107, 0, 0.08);
  color: var(--cta-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cinfo-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cinfo-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.cinfo-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 0.1rem;
}

.cinfo-arrow {
  color: var(--text-secondary);
  font-size: 1rem;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.cinfo-card:hover .cinfo-arrow {
  transform: translateX(4px);
  color: var(--cta-orange);
}

/* Cobertura mundial */
.contact-coverage {
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    rgba(255, 107, 0, 0.03) 100%
  );
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-md);
}

.contact-coverage h3,
.contact-hours h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-coverage p,
.contact-hours p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.coverage-list li {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-primary);
}

/* Horario */
.contact-hours {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-md);
}

.contact-hours p {
  margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .contact-hero__inner {
    grid-template-columns: 1fr;
  }

  .contact-hero__globe {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-hero__stats {
    gap: var(--space-sm);
  }

  .contact-stat__num {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Página de Automatización de Procesos
   ========================================================================== */

.auto-hero {
  padding: 180px 0 140px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-direction: row-reverse;
}

.auto-hero-content {
  flex: 1.2;
}
.auto-hero-visual {
  flex: 0.8;
  position: relative;
}
.auto-hero-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.stats-bar {
  background: var(--text-primary);
  color: white;
  padding: 50px 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border-radius: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 30px;
}

.stat-item h2 {
  font-size: 3.5rem;
  color: var(--cta-orange);
  margin-bottom: 5px;
}

.problem-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.problem-tile {
  background: white;
  padding: 40px;
  border-radius: 15px;
  border-left: 5px solid #ff4d4d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.solution-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 120px;
}

.solution-row:nth-child(even) {
  flex-direction: row-reverse;
}
.solution-content {
  flex: 1;
}
.solution-image {
  flex: 1;
}
.solution-image img {
  width: 100%;
  border-radius: 15px;
}

.benefit-bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-bubble {
  background: #fdfdfd;
  padding: 40px;
  border-radius: 50px 50px 50px 5px;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.benefit-bubble:hover {
  transform: translateY(-5px);
  border-color: var(--cta-orange);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 80px auto 0;
  padding-left: 30px;
  border-left: 2px dashed var(--cta-orange);
}

.timeline-step {
  position: relative;
  margin-bottom: 50px;
  padding-left: 30px;
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: -46px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--cta-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

@media (max-width: 992px) {
  .hero-flex,
  .solution-row,
  .solution-row:nth-child(even) {
    flex-direction: column;
    gap: 40px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .problem-tiles {
    grid-template-columns: 1fr;
  }
}

/* Utilities for Automation and New Pages */
.py-xl {
  padding: var(--space-xl) 0;
}
.bg-light {
  background-color: var(--bg-secondary);
}
.bg-dark {
  background-color: var(--text-primary);
}
.text-white {
  color: #ffffff !important;
}
.section-header {
  margin-bottom: 60px;
}

/* Tooltip Custom Styles */
.tooltip-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md); /* Mismo margen que los otros enlaces del menú */
}

.tooltip-trigger {
    width: 20px;
    height: 20px;
    background-color: var(--cta-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-right: 12px;
    flex-shrink: 0;
}

.tooltip-container a {
    margin-bottom: 0 !important; /* Quitamos el margen del enlace interno para no romper la línea */
}

.tooltip-box {
    visibility: hidden;
    width: 240px;
    background-color: var(--text-primary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 0;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.85rem;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px; /* Flecha alineada con el trigger */
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip Light Variation (for Footer) */
.tooltip-light .tooltip-box {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.tooltip-light:hover .tooltip-box {
    opacity: 1 !important;
}



/* Services Circle Link */
.service-next-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--cta-orange) !important; /* Borde más visible naranja de base */
    color: var(--cta-orange) !important;
    text-decoration: none;
    font-size: 24px;
    font-weight: 300; /* Plus más fino para diseño premium */
    margin: 20px 0;
    transition: all 0.3s ease;
    z-index: 100;
    position: relative;
    background: transparent;
}

.service-next-link:hover {
    background-color: var(--cta-orange) !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 20px;
}

.lang-flag {
  font-size: 1.2rem;
  opacity: 0.6;
  transition: all 0.3s ease;
  text-decoration: none;
  filter: grayscale(0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-flag:hover {
  opacity: 1;
  transform: scale(1.2);
  filter: grayscale(0);
}

.lang-flag.active {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1);
  pointer-events: none;
  border-bottom: 2px solid var(--cta-orange);
}

@media (max-width: 1024px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
  }
}

/* Trust & GEO Comparison Table Styling */
.trust-container {
    text-align: center;
}

.trust-description {
    max-width: 700px;
    margin: var(--space-sm) auto;
}

.geo-table-container {
    margin: 3rem auto;
    max-width: 900px;
    overflow-x: auto;
    padding: 2rem 1rem;
}

.geo-table-container h3 {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.geo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 1rem;
}

.geo-table th, .geo-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.geo-table thead th {
    background: var(--bg-primary);
    color: var(--cta-orange);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.geo-table tr:hover {
    background: var(--bg-primary);
}

.geo-table tr:last-child td {
    border-bottom: none;
}

.geo-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 30%;
    background: var(--bg-primary);
}

.geo-table .highlight-brosmont {
    color: var(--cta-orange);
    font-weight: 700;
}

@media (max-width: 768px) {
    .geo-table-container {
        padding: 1rem 0.5rem;
    }
    .geo-table {
        font-size: 0.85rem;
    }
    .geo-table th, .geo-table td {
        padding: 1rem;
    }
    .geo-table td:first-child {
        width: 40%;
    }
}

