 /* Variables */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #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;
  
  --blue-500: #fa0707;
  --blue-600: #e71717;
  
  --pure-white: #ffffff;
  --pure-black: #000000;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  --text-color: #404040; 
  --accent-color: #e60000; 

  --nav-height: 80px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--gray-600);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  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;
}

.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 !important;
  margin-bottom: -45px;
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Language Selector - Keep original styles */
.language-selector {
    margin-left: 1rem;
    top: -8px;

}

/* Links */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  top: -8px;
  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;
    top: 38px;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

.nav-dropdown > .nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    top: 35px;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

.nav-links > a:hover::after,
.nav-dropdown > .nav-dropdown-toggle:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  visibility: hidden;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 5px auto;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
        z-index: 1001;

    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.9); /* Fondo ligeramente más transparente */
        border-bottom: 2px solid rgba(255, 255, 255, 0.8); /* Línea blanca */
        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); /* Sombra suave */
    }
    

    .nav-toggle:checked ~ .nav-links {
        clip-path: circle(150% at top right);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

       /* 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: -20px 0 -30px 0; /* Ajusté los márgenes para un mejor posicionamiento */
    margin-bottom: -55px !important;
    }
    
    /* Language selector en móvil */
    .language-selector {
        top: 0;
    }
        }

/* Additional Mobile Adjustments */
@media (max-width: 480px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo {
    justify-content: center;
  }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--pure-black);
}

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  transition: transform 0.3s ease-out;
  transform-origin: center;
  overflow: hidden;
}

.video-banner {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.video-banner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--pure-white);
  padding-top: 250px;
  
}

@media (min-width: 1600px) {
  .hero-content {
    padding-top: 350px;  /* Ajusta el valor para pantallas más grandes */
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff; /* blanco */
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); /* sombra más fuerte */
  position: relative;
  top: 30px; /* baja el título */
}

.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.95;
  color: #fff; /* blanco */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* sombra más fuerte */
  position: relative;
  top: 35px; /* baja un poco más que el título */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .hero-title {
    top: -40px; /* sube el título en celular */
    font-size: 2.5rem; /* más pequeño para que no se encime */
  }

  .hero-subtitle {
    top: -35px; /* sube el subtítulo en celular */
    font-size: 1.2rem;
  }
}

/* Products Section */
.products {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.product-card {
  display: flex;
  gap: 4rem;
  margin-bottom: 8rem;
  background: var(--bg-card);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card.reverse {
  flex-direction: row-reverse;
}

.product-media {
  flex: 1.5;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 400px;
}

.product-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-media:hover .product-video {
  transform: scale(1.05);
}

.product-info {
  flex: 1;
  padding: 2rem;
}

.product-info h2 {
  font-size: 2.5rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
  font-weight: bold;
}

.tagline {
  font-size: 1.25rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--gray-700);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-500);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--blue-600);
}

.feature-card h3 {
  color: var(--gray-700);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--gray-500);
}

/* Feature List */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--gray-500);
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue-500);
  border-radius: 50%;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.feature-list li:hover::before {
  transform: scale(1.5);
  background: var(--blue-600);
}

/* Buttons */
.spec-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-500);
  color: var(--pure-white);
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

.spec-button:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spec-button .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.spec-button:hover .icon {
  transform: translateX(4px);
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .product-card {
    gap: 3rem;
  }
  
  .product-info h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .product-card,
  .product-card.reverse {
    flex-direction: column;
    padding: 1.5rem;
    gap: 2rem;
  }
  
  .product-media {
    min-height: 300px;
  }
  
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding-top: 8.1px; /* Ajuste del padding superior para todo el hero */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-content {
    padding-top: 320px;
  }

  .product-card {
    padding: 1rem;
    margin-bottom: 4rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* 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;
    }
}
/* ===== ESTILOS MEJORADOS PARA RESOURCES ===== */

/* Estilo del dropdown de Resources en DESKTOP */
.resources-dropdown {
    position: relative;
    display: inline-block;
}

.resources-dropdown .resources-menu {
    position: absolute;
    top: 135%; /* Coloca el menú justo debajo del elemento padre */
    left: 0;
    margin-left: -245px !important;
    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;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    margin-top: 5px; /* Pequeño espacio entre el enlace y el menú */
    transform: translateY(10px);
}

.resources-dropdown:hover .resources-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resources-menu a:not(.back-button) {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
    font-size: 1rem;
}

.resources-menu a:not(.back-button):last-child {
    border-bottom: none;
}

.resources-menu a:not(.back-button):hover {
    background: #f9fafb;
    color: #dc2626;
    padding-left: 20px;
}

/* Ocultar back button en desktop */
.resources-menu .back-button {
    display: none;
}

/* ===== ESTILOS PARA MÓVIL ===== */
@media (max-width: 968px) {
    /* Menú de Resources en móvil - pantalla completa */
    .resources-dropdown .resources-menu {
        position: fixed;
        top: 83px; /* antes estaba en 80px → lo ponemos al inicio */
        left: 0;
        width: 100%;
        height: 100vh; /* ocupa toda la pantalla */
        transform: translateX(100%);
        border-radius: 0;
        display: block;
        opacity: 1;
        visibility: visible;
        padding: 0;
        margin: 0;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        transition: transform 0.3s ease;
        z-index: 1002;
        margin-left: 0 !important;
        background: white;
    }
    
    .resources-dropdown.active .resources-menu {
        transform: translateX(0); /* entra rectangular desde la derecha */
    }
    
    /* Back button visible solo en móvil */
    .resources-menu .back-button {
        display: flex;
        align-items: center;
        padding: 1rem;
        background-color: #f9fafb;
        color: #374151;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .resources-menu .back-button i {
        margin-right: 10px;
        margin-left: 45px;
    }
    
    .resources-menu a:not(.back-button) {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f3f4f6;
        color: #374151;
        margin-left: 160px;
        text-decoration: none;
        font-size: 1rem;
    }
    
    .resources-menu a:not(.back-button):hover {
        background: #f9fafb;
        color: #dc2626;
        padding-left: 1.2rem;
    }
    
    /* Ocultar/mostrar elementos cuando Resources está activo */
    .resources-dropdown.active .nav-dropdown-toggle {
        display: none;
    }
    
    .nav-links.resources-active > *:not(.resources-dropdown):not(.language-selector) {
        display: none !important;
    }
    
    .resources-dropdown.active {
        width: 100%;
    }
    
    /* Asegurar que el menú de recursos ocupe todo el espacio */
    .nav-links.resources-active {
        display: block;
        height: auto;
    }
    /* Submenu en móvil → forzamos que NO use escala circular */
.resources-dropdown .resources-menu {
    transform: translateX(100%) !important; /* fuera de la pantalla al inicio */
    border-radius: 0 !important; /* quitar el círculo */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Cuando está activo → entra rectangular desde la derecha */
.resources-dropdown.active .resources-menu {
    transform: translateX(0) !important;
}

}
