/**
 * PORTOCARRERO WEB - INCLUDES CSS
 * Estilos globales compartidos por todas las páginas
 *
 * Estilo: Editorial Samsung, Minimalista Tecnológico, Premium B2B
 * Arquitectura: CSS Cascade Layers 2025
 * Refactorizado: Estándares Apple/Samsung/Tesla
 */

/* ============================================
   DECLARACIÓN COMPLETA DE LAYERS
   ============================================ */
@layer
    global-base,
    global-components,
    header,
    megamenu,
    footer,
    index,
    servicios,
    metodologia,
    proyectos,
    nosotros,
    contacto,
    sectores,
    sectores-detalle,
    soluciones,
    soluciones-detalle,
    soluciones-analisis,
    proyectos-detalle,
    blog,
    blog-single,
    sobre,
    global-utilities;

/* ============================================
   LAYER: GLOBAL-BASE
   ============================================ */
@layer global-base {
  /* ===== RESET ===== */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gris-700);
    background: var(--blanco-puro);
    min-height: 100vh;
  }

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

  /* ===== DESIGN TOKENS ===== */
  :root {
    /* ===== COLORES - ESCALA UNIFORME ===== */
    /* Grises (escala de 10% luminosidad) */
    --gris-0:    #000000;   /* 0% - Negro absoluto */
    --gris-100:  #1a1a1a;   /* 10% */
    --gris-200:  #333333;   /* 20% */
    --gris-300:  #4d4d4d;   /* 30% */
    --gris-400:  #666666;   /* 40% */
    --gris-500:  #808080;   /* 50% */
    --gris-600:  #999999;   /* 60% */
    --gris-700:  #b3b3b3;   /* 70% */
    --gris-800:  #cccccc;   /* 80% */
    --gris-900:  #e6e6e6;   /* 90% */
    --gris-950:  #f5f5f5;   /* 95% */
    --gris-1000: #ffffff;   /* 100% - Blanco absoluto */

    /* Azul tecnológico (escala completa para UI) */
    --azul-50:   #e6f0ff;   /* Background muy claro */
    --azul-100:  #cce0ff;   /* Background claro */
    --azul-200:  #99c2ff;   /* Border claro */
    --azul-300:  #66a3ff;   /* Hover suave */
    --azul-400:  #3385ff;   /* Hover medio */
    --azul-500:  #3ac2f8;   /* Primary (azul-tech industrial) */
    --azul-600:  #0052cc;   /* Hover primary (original azul-tech-hover) */
    --azul-700:  #003d99;   /* Pressed state */
    --azul-800:  #002966;   /* Dark mode text */
    --azul-900:  #001433;   /* Extra dark */

    /* Aliases semánticos */
    --negro-carbon:  var(--gris-100);
    --gris-grafito:  var(--gris-200);
    --gris-titanio:  var(--gris-300);
    --gris-aluminio: var(--gris-400);
    --gris-plata:    var(--gris-600);
    --gris-niebla:   var(--gris-900);
    --gris-lino:     var(--gris-950);
    --blanco-puro:   var(--gris-1000);

    --azul-tech:       var(--azul-500);
    --azul-tech-hover: var(--azul-600);
    --azul-tech-alpha: rgba(0, 102, 255, 0.1);

    /* Estados interactivos */
    --color-hover:    var(--azul-400);
    --color-pressed:  var(--azul-700);
    --color-disabled: var(--gris-700);
    --color-focus:    var(--azul-500);

    /* ===== PALETA PREMIUM 2050 ===== */
    /* Base Azul Zafiro */
    --zafiro-900: #1B365D;
    --zafiro-800: #1F3D6B;
    --zafiro-700: #264273;
    --zafiro-600: #2D4D85;
    --zafiro-500: #3355A0;
    --zafiro-400: #4A6BB5;
    --zafiro-300: #6A87C5;

    /* Acento Mostaza */
    --mostaza: #FFBE0B;
    --mostaza-hover: #E5A800;
    --mostaza-light: rgba(255, 190, 11, 0.15);

    /* Neutros Cálidos */
    --crema: #F8F6F1;
    --crema-dark: #F0EDE5;
    --gris-calido: #E8E4DC;

    /* Glassmorphism */
    --glass-bg: rgba(38, 66, 115, 0.7);
    --glass-bg-light: rgba(38, 66, 115, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 190, 11, 0.5);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px rgba(27, 54, 93, 0.3);

    /* ===== ESPACIADO - SISTEMA 8PX OPTIMIZADO ===== */
    --space-0:   0;
    --space-2:   0.125rem;  /* 2px */
    --space-4:   0.25rem;   /* 4px */
    --space-xs:  0.5rem;    /* 8px */
    --space-sm:  1rem;      /* 16px */
    --space-md:  1.5rem;    /* 24px */
    --space-lg:  2rem;      /* 32px */
    --space-xl:  3rem;      /* 48px */
    --space-2xl: 4rem;      /* 64px - Reducido, era el anterior xl */
    --space-3xl: 6rem;      /* 96px - Nuevo máximo recomendado */
    --space-4xl: 8rem;      /* 128px - Solo casos excepcionales */

    /* Contenedor */
    --container-max: 1200px;
    --container-padding: 2rem;
    --container-narrow: 900px;

    /* ===== TIPOGRAFÍA - ESCALA UNIFICADA ===== */
    /* Escala Mayor Tercera (1.25) + ajustes armónicos */
    --text-xs:   0.75rem;   /* 12px */
    --text-sm:   0.875rem;  /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg:   1.125rem;  /* 18px */
    --text-xl:   1.25rem;   /* 20px */
    --text-2xl:  1.5rem;    /* 24px */
    --text-3xl:  2rem;      /* 32px */
    --text-4xl:  3rem;      /* 48px */
    --text-5xl:  4rem;      /* 64px */
    --text-6xl:  4.5rem;    /* 72px - Nuevo para h1 */

    /* Font weights */
    --font-light:     300;
    --font-normal:    400;
    --font-medium:    500;
    --font-semibold:  600;
    --font-bold:      700;
    --font-extrabold: 800;

    /* Line heights */
    --leading-tight:  1.2;
    --leading-snug:   1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose:  1.8;

    /* Letter spacing */
    --tracking-tighter: -0.02em;
    --tracking-tight:   -0.015em;
    --tracking-normal:  0;
    --tracking-wide:    0.05em;
    --tracking-wider:   0.08em;
    --tracking-widest:  0.1em;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --duration-instant: 100ms;
    --duration-fast:    150ms;
    --duration-normal:  300ms;
    --duration-slow:    500ms;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 1500;
    --z-modal: 2000;
    --z-popover: 3000;
    --z-tooltip: 4000;

    /* Breakpoints (para JavaScript) */
    --breakpoint-sm: 375px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1440px;
    --breakpoint-2xl: 1920px;
  }

  /* ===== TIPOGRAFÍA ===== */
  h1, h2, h3, h4, h5, h6 {
    color: var(--negro-carbon);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-md);
  }

  h1 {
    font-size: var(--text-6xl);
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-lg);
  }

  h2 {
    font-size: var(--text-4xl);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-xl);
  }

  h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
  }

  h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
  }

  h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
  }

  h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
  }

  p {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--gris-titanio);
    margin-bottom: var(--space-md);
  }

  .lead {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    font-weight: var(--font-normal);
  }

  .text-small {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--gris-aluminio);
  }

  /* Eyebrow - mini títulos en AZUL */
  .eyebrow, .section__eyebrow {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--azul-tech);
    margin-bottom: var(--space-sm);
    display: block;
  }

  /* ===== RESPONSIVE TYPOGRAPHY ===== */
  @media (max-width: 768px) {
    h1 {
      font-size: var(--text-5xl); /* 64px → mejor que salto a 40px */
    }

    h2 {
      font-size: var(--text-3xl);
    }

    h3 {
      font-size: var(--text-2xl);
    }

    p, .lead {
      font-size: var(--text-base);
    }
  }

  @media (max-width: 375px) {
    h1 {
      font-size: var(--text-4xl); /* 48px en móviles pequeños */
    }

    h2 {
      font-size: var(--text-2xl);
    }
  }

  /* ===== ALINEACIONES ===== */
  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  .text-right {
    text-align: right;
  }

  /* ===== CONTENEDORES ===== */
  .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }

  .container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }

  /* ===== SECCIONES ===== */
  .section {
    padding: var(--space-3xl) var(--container-padding); /* Optimizado: de 8rem a 6rem */
  }

  .section--white {
    background: var(--blanco-puro);
  }

  .section--gray {
    background: var(--gris-lino);
  }

  .section-standard {
    padding: var(--space-3xl) var(--container-padding); /* Optimizado */
  }

  .section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    text-align: center;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
  }

  .section-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-md);
  }

  /* ===== MARGENES ===== */
  .mb-0 { margin-bottom: var(--space-0); }
  .mb-2 { margin-bottom: var(--space-2); }
  .mb-4 { margin-bottom: var(--space-4); }
  .mb-xs { margin-bottom: var(--space-xs); }
  .mb-sm { margin-bottom: var(--space-sm); }
  .mb-md { margin-bottom: var(--space-md); }
  .mb-lg { margin-bottom: var(--space-lg); }
  .mb-xl { margin-bottom: var(--space-xl); }
  .mb-2xl { margin-bottom: var(--space-2xl); }
  .mb-3xl { margin-bottom: var(--space-3xl); }
  .mb-4xl { margin-bottom: var(--space-4xl); }

  .mt-0 { margin-top: var(--space-0); }
  .mt-2 { margin-top: var(--space-2); }
  .mt-4 { margin-top: var(--space-4); }
  .mt-xs { margin-top: var(--space-xs); }
  .mt-sm { margin-top: var(--space-sm); }
  .mt-md { margin-top: var(--space-md); }
  .mt-lg { margin-top: var(--space-lg); }
  .mt-xl { margin-top: var(--space-xl); }
  .mt-2xl { margin-top: var(--space-2xl); }

  /* ===== LISTAS ===== */
  ul, ol {
    text-align: left;
    max-width: 700px;
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
  }

  li {
    margin-bottom: var(--space-sm);
    line-height: var(--leading-relaxed);
    color: var(--gris-titanio);
  }

  .benefits-list, .criteria-list {
    list-style: none;
    margin-left: 0;
  }

  .benefits-list li::before,
  .criteria-list li::before {
    content: "✓";
    color: var(--azul-tech);
    font-weight: var(--font-bold);
    display: inline-block;
    width: 1.5em;
    margin-left: -1.5em;
  }
}

/* ============================================
   LAYER: GLOBAL-COMPONENTS
   ============================================ */
@layer global-components {
  /* ===== HERO SIMPLE ===== */
  .hero-simple {
    padding: calc(var(--space-3xl) + 80px) var(--container-padding) var(--space-3xl);
    text-align: center;
  }

  .hero-subtitle {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--gris-titanio);
    margin-bottom: var(--space-lg);
  }

  .hero-intro {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    max-width: 800px;
    margin: 0 auto var(--space-lg);
  }

  /* ===== BOTONES ===== */
  .btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
  }

  .btn-primary {
    background: var(--azul-tech);
    color: var(--blanco-puro);
  }

  .btn-primary:hover {
    background: var(--azul-600);
  }

  .btn-primary:active {
    opacity: 0.85;
  }

  .btn-primary:focus-visible {
    outline: 2px solid var(--azul-tech);
    outline-offset: 4px;
  }

  .btn-secondary {
    background: transparent;
    color: var(--negro-carbon);
    border: 1px solid var(--negro-carbon);
  }

  .btn-secondary:hover {
    background: var(--negro-carbon);
    color: var(--blanco-puro);
  }

  .btn-secondary:focus-visible {
    outline: 2px solid var(--azul-tech);
    outline-offset: 4px;
  }

  .btn-full {
    width: 100%;
  }

  /* ===== TABLAS ===== */
  .table, .pricing-table, .timeline-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-2xl) 0;
    font-size: var(--text-base);
  }

  .table thead, .pricing-table thead, .timeline-table thead {
    background: var(--gris-lino);
  }

  .table th, .pricing-table th, .timeline-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--negro-carbon);
    border-bottom: 2px solid var(--gris-niebla);
  }

  .table td, .pricing-table td, .timeline-table td {
    padding: var(--space-md) var(--space-lg);
    color: var(--gris-titanio);
    border-bottom: 1px solid var(--gris-niebla);
  }

  .table tbody tr:nth-child(even),
  .pricing-table tbody tr:nth-child(even),
  .timeline-table tbody tr:nth-child(even) {
    background: var(--gris-lino);
  }

  .table tbody tr:hover,
  .pricing-table tbody tr:hover,
  .timeline-table tbody tr:hover {
    background: var(--azul-50);
  }

  .price {
    font-weight: var(--font-semibold);
    color: var(--negro-carbon);
  }

  .pricing-note {
    font-size: var(--text-sm);
    color: var(--gris-aluminio);
    text-align: center;
    margin-top: var(--space-lg);
  }

  /* ===== CTA SECTION ===== */
  .cta-section {
    padding: var(--space-3xl) var(--container-padding); /* Optimizado */
    background: var(--gris-lino);
  }

  .cta-highlight {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-sm);
  }

  .cta-subtext {
    font-size: var(--text-lg);
    color: var(--gris-titanio);
    margin-bottom: var(--space-lg);
  }

  /* ===== FORMULARIOS ===== */
  .form-group {
    margin-bottom: var(--space-lg);
  }

  label {
    display: block;
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-xs);
    color: var(--negro-carbon);
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    font-family: inherit;
    border: 1px solid var(--gris-niebla);
    background: var(--blanco-puro);
    color: var(--negro-carbon);
    transition: all var(--duration-fast) var(--ease-out);
  }

  /* Focus visible para accesibilidad de teclado */
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 2px solid var(--azul-tech);
    outline-offset: 2px;
    border-color: var(--azul-tech);
    box-shadow: 0 0 0 4px var(--azul-tech-alpha);
  }

  /* Eliminar outline solo en mouse */
  input:focus:not(:focus-visible),
  textarea:focus:not(:focus-visible),
  select:focus:not(:focus-visible) {
    outline: none;
    border-color: var(--azul-tech);
    box-shadow: 0 0 0 3px var(--azul-tech-alpha);
  }

  textarea {
    resize: vertical;
    min-height: 150px;
  }

  /* Estados disabled */
  input:disabled,
  textarea:disabled,
  select:disabled {
    background: var(--gris-lino);
    color: var(--color-disabled);
    cursor: not-allowed;
  }
}

/* ============================================
   LAYER: GLOBAL-UTILITIES
   ============================================ */
@layer global-utilities {
  /* Fade-in animation */
  .fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }

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

  /* Visibility utilities */
  .hide-mobile {
    @media (max-width: 768px) {
      display: none !important;
    }
  }

  .hide-desktop {
    @media (min-width: 769px) {
      display: none !important;
    }
  }

  .hide-tablet {
    @media (min-width: 769px) and (max-width: 1023px) {
      display: none !important;
    }
  }

  /* Focus visible global */
  *:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
  }

  /* Skip link para accesibilidad */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--azul-tech);
    color: var(--blanco-puro);
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    z-index: var(--z-tooltip);
    transition: top var(--duration-fast) var(--ease-out);
  }

  .skip-link:focus {
    top: 0;
  }

  /* ===== ANIMACIONES DE HERO ===== */
  /* Solo aplicar si el usuario no tiene preferencia de movimiento reducido */
  @media (prefers-reduced-motion: no-preference) {
    /* Animación fadeInUp para elementos del hero */
    .hero-content > *,
    .hero-simple > * > * {
      animation: heroFadeInUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) backwards;
    }

    /* Excluir heros legales */
    .hero-legal * {
      animation: none !important;
    }

    /* Delays para hero-content (index) */
    .hero-content h1,
    .hero-content .hero-title {
      animation-delay: 0.1s;
    }

    .hero-content .hero-subtitle,
    .hero-content p:first-of-type {
      animation-delay: 0.2s;
    }

    .hero-content .hero-text,
    .hero-content p:nth-of-type(2) {
      animation-delay: 0.3s;
    }

    .hero-content .hero-highlight,
    .hero-content .hero-cta,
    .hero-content .btn,
    .hero-content a.btn {
      animation-delay: 0.4s;
    }

    /* Delays para hero-simple (resto de páginas) */
    .hero-simple h1 {
      animation-delay: 0.1s;
    }

    .hero-simple .hero-subtitle,
    .hero-simple p:first-of-type {
      animation-delay: 0.2s;
    }

    .hero-simple .hero-intro,
    .hero-simple .hero-text,
    .hero-simple p:nth-of-type(2) {
      animation-delay: 0.3s;
    }

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

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* ============================================
   SCROLL INDICATOR - Tablas con overflow
   ============================================ */
.scroll-wrapper {
  position: relative;
  width: 100%;
}

.scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}


/* Indicador de progreso */
.scroll-indicator {
  position: relative;
  padding: 1rem 0 0;
}

.scroll-indicator-track {
  position: relative;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.scroll-indicator-thumb {
  position: absolute;
  top: 0;
  height: 100%;
  min-width: 40px;
  background: linear-gradient(90deg, #3ac2f8, #0099dd);
  transition: left 0.1s ease-out;
  box-shadow: 0 0 8px rgba(58, 194, 248, 0.4);
}

/* Hint de swipe */
.scroll-indicator-hint {
  position: absolute;
  top: -2.5rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 5;
}

.scroll-indicator-hint svg {
  color: #3ac2f8;
  animation: swipeHint 1.5s ease-in-out infinite;
}

.scroll-indicator-hint.hidden,
.scroll-indicator-hint.fade-out {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

@keyframes swipeHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* Touch feedback */
.scroll-wrapper.is-touching .scroll-indicator-thumb {
  background: linear-gradient(90deg, #0099dd, #3ac2f8);
  box-shadow: 0 0 12px rgba(58, 194, 248, 0.6);
}

/* Solo mostrar en móvil/tablet */
@media (min-width: 1025px) {
  .scroll-indicator {
    display: none;
  }

  .scroll-container {
    overflow-x: visible;
  }
}

/* Dark mode para fondos oscuros */
.section-dark .scroll-indicator-track {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   SCROLL HINT - Indicador "Scroll" + flechitas
   Solo aparece en páginas con hero 100vh
   ============================================ */
.scroll-hint {
  display: flex;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.8s ease;
}

.scroll-hint.is-hidden {
  opacity: 0;
}


.scroll-hint__text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.scroll-hint__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

.scroll-hint__arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
}

.scroll-hint__arrow span:nth-child(2) {
  opacity: 0.45;
  margin-top: -5px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
