/* Base Variables and Reset */
:root {
    --primary: #eeeded;
    --accent: #ff0000;
    --text: #333;
    --light-bg: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-glow: 0 0 5px rgba(255, 255, 255, 0.5);
    --nav-height: 80px;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
     /* Colores principales - Blanco y Rojo */
    --primary-red: #dc2626;
    --primary-red-dark: #b91c1c;
    --primary-red-light: #ef4444;
    --secondary-red: #f87171;
    --accent-red: #fca5a5;
    
    /* Colores neutros */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* Gradientes */
    --gradient-red: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(185, 28, 28, 0.8) 100%);
    --gradient-card: linear-gradient(145deg, var(--white) 0%, var(--gray-50) 100%);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Roboto', var(--font-primary);
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-red: 0 10px 25px -5px rgba(220, 38, 38, 0.3);
    
    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    
    /* Navigation height */
    --nav-height: 80px;
}
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* iOS-specific optimizations */
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--primary);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
  }
  
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--nav-height);
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    position: relative;
}

.logo-image {
    height: 150px;
    width: auto;
    margin-top: -45px;
    margin-bottom: -45px;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    visibility: hidden;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.nav-toggle-label span {
    display: block !important;
    width: 100%;
    height: 3px;
    background: #000000 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex !important;
        z-index: 1001;
    }
    
 
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9);
        border-bottom: 2px solid rgba(255, 255, 255, 0.8);
        padding: var(--spacing-md);
        flex-direction: column;
        align-items: center;
        clip-path: circle(0% at top right);
        transition: 0.4s;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-toggle:checked ~ .nav-links {
        clip-path: circle(150% at top right);
    }
}

 /* Dropdown Menu Styles */
       .nav-dropdown {
            position: relative;
        }
        
        .nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .nav-dropdown:hover .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        
        .nav-dropdown-menu a {
            display: block;
            padding: 12px 16px;
            color: #374151;
            text-decoration: none;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .nav-dropdown-menu a:last-child {
            border-bottom: none;
        }
        
        .nav-dropdown-menu a:hover {
            background: #f9fafb;
            color: #dc2626;
            padding-left: 20px;
        }
        
        .nav-dropdown-submenu {
            position: relative;
        }
        
        .nav-dropdown-submenu-menu {
            position: absolute;
            top: 0;
            left: 100%;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            min-width: 150px;
            opacity: 0;
            visibility: hidden;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
        }
        
        .nav-dropdown-submenu:hover .nav-dropdown-submenu-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }
        
        .nav-dropdown-submenu-menu a {
            padding: 10px 14px;
            font-size: 14px;
        }
        
        @media (max-width: 768px) {
    .nav-links > a:hover::after,
    .nav-dropdown > .nav-dropdown-toggle:hover::after {
        width: 40%;
        min-width: 30%;
    }
    
    /* Mobile dropdown - sin fondo rojo, solo línea */
    .nav-dropdown-menu,
    .nav-dropdown-submenu-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent; /* Sin fondo */
        display: none;
        margin: 0;
        min-width: auto;
        border-radius: 0;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown-submenu:hover .nav-dropdown-submenu-menu {
        display: block;
    }
    
    .nav-dropdown-menu a,
    .nav-dropdown-submenu-menu a {
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid #e5e7eb;
        background: transparent; /* Sin fondo rojo */
        white-space: normal;
        word-wrap: break-word;
    }
    
    .nav-dropdown-menu a:hover,
    .nav-dropdown-submenu-menu a:hover {
        background: transparent; /* Sin fondo rojo en hover */
        color: #dc2626;
        padding-left: 0; /* Sin padding extra */
    }
    
.logo-image {
    height: 150px; /* Aumenté el tamaño para hacerlo más grande */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-top: -45px !important;
    margin-bottom: -45px !important;
    margin: -20px 0 -30px 0; /* Ajusté los márgenes para un mejor posicionamiento */
}
    
    /* Language selector en móvil */
    .language-selector {
        top: 0;
    }
        }
     @media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
.logo-image {
    height: 150px; /* Aumenté el tamaño para hacerlo más grande */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-top: -45px !important;
    margin-bottom: -45px !important;
    margin: -20px 0 -30px 0; /* Ajusté los márgenes para un mejor posicionamiento */
}
    
    .nav-links > a,
    .nav-dropdown > .nav-dropdown-toggle {
        font-size: 1.1rem;
        padding: 1.2rem 0;
    }
}
  
  /* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.85); /* Ajuste para un fondo más claro */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,  /* Parte superior más clara */
        rgba(0, 0, 0, 0.3) 100%      /* Parte inferior ligeramente más oscura */
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: #ffffff; /* Mantiene el texto blanco */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Sombra sutil para el texto */
}
  
  .hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .tagline {
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
    text-shadow: var(--text-glow);
    color: #fff;
  }
  
  /* Overview Section */
  .overview {
    padding: 6rem 0;
    background: var(--light-bg);
  }
  
  .feature-highlight {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .feature-highlight h2 {
    font-size: 3rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    text-shadow: var(--text-glow);
  }
  
  .accent {
    color: var(--accent);
    font-weight: 500;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
    
  }
  
  /* Key Features */
  .key-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
  }
  
  .feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(100, 100, 100, 0.1);  /* Gris oscuro con opacidad baja */
}
  
  .feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(100, 100, 100, 0.2);  /* Gris oscuro con opacidad más alta */
}
  
  .feature h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
  }
  
  /* Specs Section */
  .specs {
    padding: 6rem 0;
    background: var(--primary);
    color: #fff;
  }
  
  .specs h2, .gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #080808;
  }
  
  .gallery h2 {
    color: black;
  }
  
  .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .spec-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(100, 100, 100, 0.1);  /* Gris oscuro con opacidad baja */
}
  
  .spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 100, 100, 0.2);  /* Gris oscuro con opacidad más alta */
}
  
  .spec-card h3 {
    color: var(--accent);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
  }
  
  .spec-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .spec-card li {
    display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  }

  .spec-card li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    border-color: var(--accent);
  }
  
  .spec-card li:last-child {
    border-bottom: none;
  }
  
  .spec-card li span:first-child {
    color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  }
  
  .spec-card li span:last-child {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.6;
    word-break: break-word;
    padding-left: 0.5rem;
  }

  .spec-card li:hover span:last-child {
    color: #cc3535;
  }     
  
  /* Gallery Section */
  .gallery {
    padding: 6rem 0;
    background: var(--light-bg);
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.8s ease forwards;
  }
  
  .gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(100, 100, 100, 0.2);  /* Gris oscuro con opacidad más alta */
}
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate3d(0, 20px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  
  @keyframes float {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
    100% { transform: translate3d(0, 0, 0); }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  @keyframes fadeInScale {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
  }
  
  /* Mobile Styles */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2.5rem;
    }
  
    .tagline {
      font-size: 1.2rem;
    }
  
    .key-features,
    .specs-grid,
    .gallery-grid {
      grid-template-columns: 1fr;
    }
  
    .feature-highlight h2 {
      font-size: 2rem;
    }
  
    .specs-grid {
      padding: 0 1rem;
      gap: 1.5rem;
    }
  
    .spec-card {
      margin: 0;
    }
  
    .spec-card li {
      grid-template-columns: 1fr;
      gap: 0.25rem;
    }
  
    .spec-card li span:last-child {
      text-align: left;
      padding-left: 0;
    }
  }
  
  /* iOS Optimizations */
  @supports (-webkit-touch-callout: none) {
    .hero,
    .specs-grid,
    .gallery-grid {
      transform: translate3d(0,0,0);
    }
    
    .spec-card {
      -webkit-transform: translateZ(0);
      backface-visibility: hidden;
    }
  }
  
  /* iOS Touch Scrolling Fix */
  .scrollable-content {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
  
  /* Prevent iOS Text Size Adjustment */
  body, input, button, textarea {
    -webkit-text-size-adjust: none;
  }
  
  /* iOS Momentum Scrolling */
  .overflow-scroll {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  
  
  /* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
  }
  
  .lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }
  
  .lightbox.active img {
    transform: scale(1);
  }
  
  .close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .close-lightbox:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
  }
  
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        height: 70vh;
        max-height: 70vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1.8rem;
        padding: 2rem 1.5rem;
        clip-path: circle(0% at top right);
        transition: clip-path 0.4s ease-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        padding: 0.5rem 1rem;
        color: #333;
        width: auto;
        text-align: left;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        transition: all 0.3s ease;
        position: relative;
        display: inline-block;
    }

    /* Línea roja al hover (como en la imagen) */
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #ff0000; /* Rojo como en tu imagen */
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .nav-links a:hover {
        background: transparent; /* Elimina cualquier fondo gris */
        transform: none; /* Elimina cualquier transformación */
    }

    /* Estilo para el selector de idioma */
    .nav-links a[href*="ESPAÑOL"] {
        margin-top: 1rem;
        font-weight: bold;
    }

    .nav-toggle:checked ~ .nav-links {
        clip-path: circle(150% at top right);
    }

    .nav-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
}
  
/* Estilo específico para tablets (pantallas medianas) */
@media (min-width: 600px) and (max-width: 1024px) {
    .nav-toggle-label {
        display: block;
        z-index: 1001;
        position: relative;
        padding: 20px; /* Más espacio para tocar fácilmente */
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        height: 70vh;
        max-height: 70vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem; /* Más espacio entre enlaces para tablets */
        padding: 2.5rem 2rem; /* Más padding para mejor legibilidad */
        clip-path: circle(0% at top right);
        transition: clip-path 0.4s ease-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12); /* Sombra más suave */
        border-radius: 0;
    }

    .nav-links a {
        font-size: 1.5rem; /* Texto un poco más grande para tablets */
        padding: 0.8rem 1.5rem; /* Más relleno para mejor interacción táctil */
        color: #333;
        width: auto;
        text-align: left;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        transition: all 0.3s ease;
        position: relative;
        display: inline-block;
    }

    /* Línea roja al hover (como en la imagen) */
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #ff0000;
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .nav-links a:hover {
        background: transparent;
        transform: none;
    }

    /* Selector de idioma con más margen superior */
    .nav-links a[href*="ESPAÑOL"] {
        margin-top: 1.5rem;
        font-weight: bold;
    }

    .nav-toggle:checked ~ .nav-links {
        clip-path: circle(150% at top right);
    }

    .nav-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
}