/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0D0D0D;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barra de Navegación */
.navbar {
    background: rgba(13, 13, 13, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 101, 34, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
}

.nav-logo .logo-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
}

.nav-logo h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #F26522;
    background-color: rgba(242, 101, 34, 0.1);
}

.nav-auth {
    display: flex;
    gap: 15px;
}

.login-btn {
    background: linear-gradient(135deg, #F26522, #D4541E);
    color: white !important;
    border-radius: 8px;
    padding: 10px 20px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #D4541E, #B8441A);
    transform: translateY(-2px);
}

/* Sección Hero */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(rgba(13, 13, 13, 0.6), rgba(13, 13, 13, 0.6)),
                url('../images/bg_1.jpg') center center / cover no-repeat fixed;
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.4);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(45deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #F26522;
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(242, 101, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Sección de Características */
.features {
    padding: 100px 0;
    background: #0D0D0D;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-card.reverse {
    direction: rtl;
}

.feature-card.reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.3;
}

.feature-content p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
}

.feature-image {
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.05);
}

/* Sección de Módulos */
.modules {
    padding: 100px 0;
    background: linear-gradient(rgba(13, 13, 13, 0.7), rgba(13, 13, 13, 0.7)),
                url('../images/bg_3.jpg') center center / cover no-repeat;
    position: relative;
}

.modules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.7);
    z-index: 0;
}

.modules .container {
    position: relative;
    z-index: 1;
}

.modules h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 60px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.module-card {
    background: rgba(26, 26, 26, 0.9);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(242, 101, 34, 0.2);
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(242, 101, 34, 0.2);
    border-color: rgba(242, 101, 34, 0.5);
}

.module-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #F26522, #D4541E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon i {
    font-size: 32px;
    color: #fff;
}

.module-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.module-card p {
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-module {
    background: linear-gradient(135deg, #F26522, #D4541E);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(rgba(13, 13, 13, 0.75), rgba(13, 13, 13, 0.85)),
                url('../images/bg_2.jpg') center center / cover no-repeat;
    color: #e2e8f0;
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.85);
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-logo span {
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #F26522;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #F26522;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu, .nav-auth {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .feature-card {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .feature-card.reverse {
        direction: ltr;
    }
    
    .feature-content h3 {
        font-size: 2rem;
    }
    
    .modules h2 {
        font-size: 2.5rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .module-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de hover adicionales */
.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

/* Gradientes adicionales para efectos visuales */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero {
    position: relative;
}

/* ===== MEDIA QUERIES ADICIONALES PARA MEJOR RESPONSIVIDAD ===== */

/* Tablets en orientación vertical y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .feature-content h3 {
        font-size: 2.2rem;
    }
    
    .feature-card {
        gap: 50px;
        margin-bottom: 80px;
    }
}

/* Mejoras adicionales para móviles */
@media (max-width: 480px) {
    /* Navegación móvil mejorada */
    .nav-container {
        padding: 12px 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-auth {
        display: flex;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 8px 4px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .nav-link i {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .nav-link:hover {
        background-color: rgba(37, 99, 235, 0.1);
        transform: translateY(-1px);
    }
    
    /* Hero sección móvil */
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1rem;
        margin: 0 auto;
    }
    
    /* Características móvil */
    .features {
        padding: 50px 0;
    }
    
    .features h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .feature-card {
        margin-bottom: 50px;
        gap: 20px;
    }
    
    .feature-content h3 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .feature-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .feature-image img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    /* Módulos móvil */
    .modules {
        padding: 50px 0;
    }
    
    .modules h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    .module-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .module-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
    
    .module-icon i {
        font-size: 24px;
    }
    
    .module-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .module-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .btn-module {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    /* Footer móvil */
    .footer {
        padding: 30px 0;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-content h3 {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 6px 2px;
    }
}

/* ===============================
   LOADING OVERLAY REDISEÑADO
   =============================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Logo container con animación */
.loading-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.loading-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 3px solid #ff6b35;
    border-radius: 50%;
    animation: pulseRing 2s ease-in-out infinite;
    opacity: 0.7;
}

/* Mensajes con tipografía grande y llamativa */
.loading-message h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.loading-message p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-weight: 400;
}

.loading-thanks {
    font-size: 16px;
    color: #ff6b35;
    font-weight: 600;
    margin-top: 15px !important;
}

/* Barra de progreso animada */
.loading-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c42, #ff6b35);
    border-radius: 3px;
    animation: progressSlide 2s ease-in-out infinite;
    background-size: 200% 100%;
}

/* Animaciones */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
}

@keyframes progressSlide {
    0% {
        width: 0%;
        background-position: 0% 0%;
    }
    50% {
        width: 70%;
        background-position: 100% 0%;
    }
    100% {
        width: 100%;
        background-position: 200% 0%;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .loading-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .loading-logo {
        width: 60px;
        height: 60px;
    }
    
    .loading-pulse-ring {
        width: 80px;
        height: 80px;
    }
    
    .loading-message h2 {
        font-size: 20px;
    }
    
    .loading-message p {
        font-size: 16px;
    }
    
    .loading-thanks {
        font-size: 14px;
    }
}

/* ===============================
   OVERLAY DE PROCESAMIENTO FINAL
   =============================== */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8)) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(5px) !important;
}

.loading-content {
    text-align: center !important;
    color: white !important;
    max-width: 500px !important;
    padding: 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.loading-logo-container {
    position: relative !important;
    display: inline-block !important;
    margin-bottom: 30px !important;
}

.loading-logo {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    animation: logoFloat 3s ease-in-out infinite !important;
    position: relative !important;
    z-index: 2 !important;
}

.loading-pulse-ring {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100px !important;
    height: 100px !important;
    border: 3px solid #ff6b35 !important;
    border-radius: 50% !important;
    animation: pulseRing 2s ease-in-out infinite !important;
    opacity: 0.7 !important;
}

.loading-message h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    line-height: 1.3 !important;
}

.loading-message p {
    font-size: 18px !important;
    margin-bottom: 10px !important;
    color: #e0e0e0 !important;
    font-weight: 400 !important;
}

.loading-thanks {
    font-size: 16px !important;
    color: #ff6b35 !important;
    font-weight: 600 !important;
    margin-top: 15px !important;
}

.loading-progress-bar {
    width: 100% !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px !important;
    margin-top: 30px !important;
    overflow: hidden !important;
    position: relative !important;
}

.loading-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #ff6b35, #ff8c42, #ff6b35) !important;
    border-radius: 3px !important;
    animation: progressSlide 2s ease-in-out infinite !important;
    background-size: 200% 100% !important;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
}

@keyframes progressSlide {
    0% {
        width: 0%;
        background-position: 0% 0%;
    }
    50% {
        width: 70%;
        background-position: 100% 0%;
    }
    100% {
        width: 100%;
        background-position: 200% 0%;
    }
}

/* Toast Notifications - Asegurar que no interfiera */
.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10001 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.toast {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border-left: 4px solid #007bff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 300px !important;
    animation: slideIn 0.3s ease-out !important;
}

.toast.success {
    border-left-color: #28a745 !important;
}

.toast.error {
    border-left-color: #dc3545 !important;
}

.toast.warning {
    border-left-color: #ffc107 !important;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
