 :root {
     --rojo-rvm: #c00812;
     --rojo-hover: #e00a15;
     --negro: #0a0a0a;
     --blanco: #ffffff;
     --gris-oscuro: #141414;
     --gris-texto: #a0a0a0;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Montserrat', sans-serif;
 }

 body {
     background-color: var(--negro);
     color: var(--blanco);
     overflow-x: hidden;
     line-height: 1.6;
     position: relative;
 }

 /* Fondo más limpio y sutil */
 body::before {
     content: '';
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background:
         radial-gradient(circle at 15% 50%, rgba(192, 8, 18, 0.08) 0%, transparent 50%),
         radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
     z-index: -1;
 }

 /* Header minimalista y moderno */
 header {
     background: rgba(10, 10, 10, 0.85);
     backdrop-filter: blur(15px);
     -webkit-backdrop-filter: blur(15px);
     border-bottom: 1px solid rgba(192, 8, 18, 0.3);
     position: sticky;
     top: 0;
     z-index: 1000;
     padding: 1rem 0;
     transition: all 0.3s ease;
 }

 .nav-container {
     max-width: 1400px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 3rem;
 }

 .logo-container {
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     text-decoration: none;
 }

 .logo-main {
     display: flex;
     align-items: center;
     gap: 12px;
 }

 .logo-img {
     width: 45px;
     height: 45px;
     border-radius: 5px;
     object-fit: cover;
     border: 2px solid var(--rojo-rvm);
 }

 .logo-text {
     font-size: 1.6rem;
     font-weight: 900;
     color: var(--blanco);
     letter-spacing: 2px;
     text-transform: uppercase;
 }

 .logo-text span {
     color: var(--rojo-rvm);
 }

 .logo-slogan {
     font-size: 0.75rem;
     color: var(--gris-texto);
     letter-spacing: 3px;
     text-transform: uppercase;
     font-weight: 400;
     margin-top: 4px;
 }

 /* Menú de navegación */
 nav ul {
     display: flex;
     list-style: none;
     gap: 2rem;
 }

 .nav-item {
     position: relative;
     padding: 0.5rem 0;
 }

 .nav-item>a {
     color: var(--blanco);
     text-decoration: none;
     font-weight: 600;
     font-size: 0.9rem;
     letter-spacing: 1px;
     text-transform: uppercase;
     transition: color 0.3s;
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .nav-item>a::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0;
     height: 2px;
     background: var(--rojo-rvm);
     transition: width 0.3s ease;
 }

 .nav-item:hover>a {
     color: var(--rojo-rvm);
 }

 .nav-item:hover>a::after {
     width: 100%;
 }

 /* Submenú (dropdown) moderno */
 .dropdown-menu {
     position: absolute;
     top: 100%;
     left: 0;
     background: var(--gris-oscuro);
     border: 1px solid rgba(255, 255, 255, 0.05);
     border-top: 2px solid var(--rojo-rvm);
     min-width: 220px;
     opacity: 0;
     visibility: hidden;
     transform: translateY(15px);
     transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
     z-index: 100;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
     border-radius: 0 0 4px 4px;
 }

 .nav-item:hover .dropdown-menu {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }

 .dropdown-menu a {
     display: block;
     padding: 15px 20px;
     color: var(--gris-texto);
     text-decoration: none;
     font-size: 0.85rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 1px;
     border-bottom: 1px solid rgba(255, 255, 255, 0.02);
     transition: all 0.2s;
 }

 .dropdown-menu a:hover {
     background: rgba(192, 8, 18, 0.05);
     color: var(--blanco);
     padding-left: 25px;
     border-left: 3px solid var(--rojo-rvm);
 }

 /* Botones de usuario */
 .user-info {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

 .user-info span {
     color: var(--gris-texto);
     font-size: 0.85rem;
     font-weight: 600;
 }

 .btn-modern {
     background: transparent;
     border: 1px solid rgba(255, 255, 255, 0.2);
     padding: 0.5rem 1rem;
     font-size: 0.8rem;
     color: var(--blanco);
     text-decoration: none;
     cursor: pointer;
     letter-spacing: 1px;
     text-transform: uppercase;
     font-weight: 600;
     transition: all 0.3s ease;
     border-radius: 2px;
 }

 .btn-modern:hover {
     border-color: var(--rojo-rvm);
     background: rgba(192, 8, 18, 0.1);
     color: var(--rojo-rvm);
 }

 .logout-btn {
     background: transparent;
     border: 1px solid var(--rojo-rvm);
     color: var(--rojo-rvm);
 }

 .logout-btn:hover {
     background: var(--rojo-rvm);
     color: var(--blanco);
     box-shadow: 0 0 15px rgba(192, 8, 18, 0.4);
 }

 .container {
     max-width: 1400px;
     margin: 0 auto;
     min-height: 70vh;
 }

 /* Footer renovado */
 footer {
     background: var(--gris-oscuro);
     padding: 5rem 0 2rem;
     margin-top: 5rem;
     border-top: 1px solid rgba(255, 255, 255, 0.05);
 }

 .footer-content {
     max-width: 1400px;
     margin: 0 auto;
     padding: 0 3rem;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 4rem;
 }

 .footer-section h3 {
     font-size: 1.1rem;
     margin-bottom: 2rem;
     color: var(--blanco);
     text-transform: uppercase;
     letter-spacing: 2px;
     font-weight: 800;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .footer-section h3::before {
     content: '';
     display: inline-block;
     width: 8px;
     height: 8px;
     background: var(--rojo-rvm);
 }

 .footer-section p,
 .footer-section a {
     color: var(--gris-texto);
     margin-bottom: 1rem;
     display: block;
     text-decoration: none;
     transition: all 0.3s;
     font-size: 0.95rem;
     line-height: 1.8;
 }

 .footer-section a:hover {
     color: var(--rojo-rvm);
 }

 .social-links {
     display: flex;
     gap: 10px;
     margin-top: 1.5rem;
 }

 .social-links a {
     width: 40px;
     height: 40px;
     background: rgba(255, 255, 255, 0.03);
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s;
     border-radius: 2px;
 }

 .social-links a:hover {
     background: var(--rojo-rvm);
     color: var(--blanco);
     transform: translateY(-3px);
 }

 /* =========================================
   FOOTER BOTTOM - CENTRADO PERFECTO
   ========================================= */
.footer-bottom {
    background-color: #141414; /* Mantenemos el fondo oscuro */
    padding: 25px 20px; /* Un poco más de aire */
    border-top: 1px solid #333; /* Un toque de separación */
    
    /* El truco del centrado con Flexbox */
    display: flex;
    flex-direction: column; /* Apilamos los elementos verticalmente */
    align-items: center;    /* Centramos horizontalmente todo */
    justify-content: center; /* Centramos verticalmente */
    gap: 15px;               /* Separación entre el copyright y el logo */
    text-align: center;      /* Centramos el texto interior */
}

/* Estilo para el texto de Copyright */
.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
    margin: 0; /* Quitamos márgenes por defecto */
    line-height: 1.4;
}

/* Contenedor del logo de ADev */
.adev-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajuste fino del logo */
.adev-logo {
    height: 20px; /* Altura sutil */
    width: auto;  /* Mantenemos proporción */
    filter: brightness(0) invert(1); /* Lo hacemos blanco para que combine */
    opacity: 0.7; /* Lo hacemos un poco más discreto */
    transition: opacity 0.3s ease;
}

/* Efecto hover profesional */
.adev-logo:hover {
    opacity: 1; /* Se ilumina al pasar el mouse */
}

 /* Estilos específicos para la firma de ADev Software */
 .agency-credit {
     color: rgba(255, 255, 255, 0.6);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-wrap: wrap;
     /* Para que se adapte en celulares */
 }

 .agency-credit a {
     text-decoration: none;
     display: inline-flex;
     align-items: center;
 }

 .agency-credit img {
     height: 30px;
     vertical-align: middle;
     margin: 0 5px;
     filter: drop-shadow(0 0 5px #FF6B35);
     transition: transform 0.3s ease;
 }

 .agency-credit img:hover {
     transform: scale(1.05);
 }

 .agency-credit .separator {
     margin: 0 8px;
     color: rgba(255, 255, 255, 0.3);
 }

 .privacy-link {
     color: inherit;
     transition: color 0.3s ease;
 }

 .privacy-link:hover {
     color: var(--blanco);
 }

 @media (max-width: 1024px) {

     .nav-container,
     .footer-content {
         padding-left: 2rem;
         padding-right: 2rem;
     }
 }

 @media (max-width: 768px) {
     .nav-container {
         flex-direction: column;
         gap: 1.5rem;
     }

     nav ul {
         flex-wrap: wrap;
         justify-content: center;
         gap: 1rem;
     }

     .dropdown-menu {
         position: static;
         opacity: 1;
         visibility: visible;
         transform: none;
         display: none;
         background: rgba(255, 255, 255, 0.02);
     }

     .nav-item:hover .dropdown-menu {
         display: block;
     }
 }

 /* ===== MEGA MENÚ ESTILO BENELLI ===== */

 .mega-dropdown {
     /* Necesario para que el submenú mida el 100% de la pantalla, no del botón */
     position: static !important;
 }

 .mega-menu {
     position: absolute;
     top: 100%;
     left: 0;
     width: 100%;
     /* Ancho total */
     background: var(--blanco);
     /* Fondo claro para resaltar motos */
     display: flex;
     opacity: 0;
     visibility: hidden;
     transform: translateY(15px);
     transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
     z-index: 100;
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
     border-top: 3px solid var(--rojo-rvm);
     min-height: 380px;
 }

 .nav-item.mega-dropdown:hover .mega-menu {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }

 .mega-column {
     padding: 3rem 4rem;
 }

 .mega-categories {
     width: 25%;
     background: #f8f8f8;
     border-right: 1px solid #eaeaea;
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
 }

 .mega-cat {
     font-size: 1.1rem;
     font-weight: 800;
     text-transform: uppercase;
     color: #444;
     cursor: pointer;
     transition: all 0.3s ease;
     border-left: 4px solid transparent;
     padding-left: 15px;
 }

 .mega-cat:hover,
 .mega-cat.active {
     color: var(--rojo-rvm);
     border-left: 4px solid var(--rojo-rvm);
 }

 .mega-models {
     width: 25%;
     border-right: 1px solid #eaeaea;
     display: flex;
     flex-direction: column;
     gap: 1rem;
     background: var(--blanco);
 }

 .mega-model-link {
     font-size: 1rem;
     font-weight: 600;
     color: #666;
     text-decoration: none;
     transition: all 0.2s ease;
     cursor: pointer;
     padding: 5px 0;
 }

 .mega-model-link:hover,
 .mega-model-link.active {
     color: var(--rojo-rvm);
 }

 .mega-image {
     width: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     background: var(--blanco);
 }

 .mega-image img {
     max-width: 80%;
     max-height: 280px;
     object-fit: contain;
     transition: opacity 0.2s ease, transform 0.2s ease;
 }

 .mega-image img.fade {
     opacity: 0;
     transform: scale(0.95);
 }

 /* =========================================
   MENÚ MÓVIL (HAMBURGUESA)
   ========================================= */

 /* Por defecto (en PC), el botón está oculto */
 .mobile-menu-btn {
     display: none;
     background: transparent;
     border: none;
     color: var(--blanco);
     cursor: pointer;
     padding: 5px;
 }

 /* =========================================
   CENTRADO PERFECTO EN MÓVILES PARA EL FOOTER
   ========================================= */
 @media (max-width: 768px) {

     /* Centra los textos normales de cada bloque */
     .footer-section {
         text-align: center;
     }

     /* 👇 ESTO ES LO QUE FALTABA: Centra los títulos con el cuadradito rojo 👇 */
     .footer-section h3 {
         justify-content: center;
         text-align: center;
         width: 100%;
     }

     /* Centra los íconos de redes sociales */
     .social-links {
         justify-content: center;
     }

     /* Centra la parte final (créditos y copyright) */
    .footer-bottom {
        padding: 20px 15px;
        gap: 12px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }

     /* Acomoda los logos de la agencia para que no se aprieten */
     .agency-credit {
         justify-content: center;
         flex-wrap: wrap;
     }

     /* Oculta la barrita separadora "|" en celulares para que los créditos bajen limpios */
     .separator {
         display: none;
     }
 }

 /* ============================================================
   BLOQUE ÚNICO PARA MÓVILES (1024px) - SOLUCIÓN DEFINITIVA
   ============================================================ */
 @media (max-width: 1024px) {

     /* 1. HEADER: Evitamos que la hamburguesa se caiga de la pantalla */
     .nav-container {
         display: flex !important;
         flex-direction: row !important;
         flex-wrap: nowrap !important;
         /* 👈 Obliga a que NADA se caiga al renglón de abajo */
         justify-content: space-between !important;
         align-items: center !important;
         padding: 0 10px !important;
         /* Menos espacio a los costados en pantallas chicas */
         width: 100% !important;
     }

     .logo-img {
         width: 30px !important;
         height: 30px !important;
     }

     /* Apenitas más chico */
     .logo-text {
         font-size: 1rem !important;
     }

     /* Achicamos texto para dar lugar */
     .logo-slogan {
         display: none !important;
     }

     .user-info {
         order: 2 !important;
         margin-left: auto !important;
         margin-right: 10px !important;
     }

     .btn-modern {
         padding: 5px 8px !important;
         font-size: 0.7rem !important;
     }

     /* 2. HAMBURGUESA: Blindada para que siempre se vea */
     .mobile-menu-btn {
         display: flex !important;
         align-items: center !important;
         justify-content: center !important;
         order: 3 !important;
         min-width: 35px !important;
         /* 👈 Le aseguramos su propio espacio */
         background: transparent !important;
         border: none !important;
     }

     .mobile-menu-btn svg {
         stroke: #ffffff !important;
     }

     /* 3. MENÚ PRINCIPAL */
     nav ul {
         display: none !important;
         flex-direction: column !important;
         position: absolute !important;
         top: 100% !important;
         left: 0 !important;
         width: 100vw !important;
         background: rgba(10, 10, 10, 0.98) !important;
         border-bottom: 2px solid var(--rojo-rvm) !important;
     }

     nav ul.active {
         display: flex !important;
         padding: 0 !important;
     }

     .nav-item {
         width: 100% !important;
     }

     .nav-item>a {
         display: block !important;
         padding: 10px 0 !important;
         /* Achicamos el espacio arriba y abajo */
         text-align: center !important;
         font-size: 0.95rem !important;
         /* Letra más delicada y moderna */
         border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
     }

     /* 4. MEGA MENÚ: DE VUELTA AL DISEÑO DE DOS COLUMNAS (40/60) */
     .mega-menu {
         display: none !important;
         position: relative !important;
         flex-direction: row !important;
         /* Lado a lado */
         width: 100% !important;
         background: #050505 !important;
         min-height: auto !important;
         box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.8) !important;
     }

     .mega-dropdown.open .mega-menu {
         display: flex !important;
     }

     /* Categorías a la Izquierda */
     .mega-categories {
         width: 40% !important;
         display: flex !important;
         flex-direction: column !important;
         padding: 10px 0 !important;
         background: #111 !important;
         border-right: 1px solid #222 !important;
     }

     .mega-cat {
         padding: 15px 10px !important;
         font-size: 0.9rem !important;
         text-align: left !important;
         color: #ccc !important;
         border-bottom: 1px solid #1a1a1a !important;
     }

     /* 3. MEGA MENÚ: SOLUCIÓN AL FONDO BLANCO */
     .mega-models {
         width: 60% !important;
         display: flex !important;
         flex-direction: column !important;
         padding: 10px !important;
         background: #050505 !important;
         /* 👈 ESTA ES LA MAGIA: Fondo negro */
         border-left: 1px solid #222 !important;
         /* Separador sutil */
     }

     .mega-model-link {
         padding: 10px 5px !important;
         font-size: 0.9rem !important;
         color: #ffffff !important;
         /* 👈 Ahora el texto blanco SÍ se va a ver */
         border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
     }

     .mega-image {
         display: none !important;
     }
 }

/* --- DROPDOWN DE ADMINISTRADOR PRO --- */

.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropbtn {
    background: #1a1a1a;
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid var(--rojo-rvm);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.admin-user-tag {
    color: var(--gris-texto);
    border-right: 1px solid #333;
    padding-right: 10px;
}

/* El Menú Desplegable */
.admin-drop-content {
    display: none; /* Oculto por defecto */
    position: absolute;
    right: 0;
    background-color: #141414;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1100;
    border: 1px solid #333;
    border-top: 2px solid var(--rojo-rvm);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

/* Mostrar al pasar el mouse en PC */
.admin-dropdown:hover .admin-drop-content {
    display: block;
}

.admin-drop-content a, 
.admin-logout-link {
    color: #ccc !important;
    padding: 12px 16px;
    text-decoration: none !important;
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.admin-drop-content a:hover, 
.admin-logout-link:hover {
    background-color: #1a1a1a;
    color: var(--rojo-rvm) !important;
    padding-left: 20px;
}

.admin-divider {
    height: 1px;
    background: #333;
    margin: 5px 0;
}

.admin-logout-link {
    color: var(--rojo-rvm) !important;
}

/* =========================================
   RESPONSIVE PARA CELULARES (CORREGIDO)
   ========================================= */
@media (max-width: 1024px) {
    /* Quitamos el ancho total para que no empuje el contenido */
    .admin-dropdown {
        width: auto; 
        margin-top: 0;
        margin-right: 40px; /* Espacio para que no tape el botón hamburguesa */
    }

    /* Hacemos el botón mucho más pequeño */
    .admin-dropbtn {
        width: auto;
        padding: 5px 10px !important;
        font-size: 0.65rem !important;
        gap: 5px !important;
    }

    /* Ocultamos el nombre "ADEV" en móviles para ganar espacio lateral */
    .admin-user-tag {
        display: none; 
    }

    /* El contenido desplegable vuelve a ser flotante para no deformar el header */
    .admin-drop-content {
        position: absolute; 
        right: 0;
        width: 200px;
        background: #141414;
        border: 1px solid #333;
        border-top: 2px solid var(--rojo-rvm);
    }
}