* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-out 1.5s forwards;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: rgba(118, 75, 162, 0.8);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: rgba(102, 126, 234, 1);
    animation-duration: 0.8s;
}

.loader-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    animation: pulse 2s ease-in-out infinite;
}

.loader-text {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Navegación */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(17, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(17, 0, 0, 0.3);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 55px;
}

.nav-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    transition: all 0.3s ease;
}

.nav-logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    background: rgba(17, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Contenedor principal */
.container {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Componente Landing */
.landing {
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.landing-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.landing-logo-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.landing-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.landing-intro {
    background: rgba(17, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(17, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.landing-intro h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.landing-intro p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    background: rgba(17, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(17, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
}

.feature h3 {
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
}

.feature p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: center;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.8);
}

/* Componente Registro */
.register {
    max-width: 500px;
    width: 100%;
    background: rgba(17, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(17, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.register-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.register-subtitle {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.register-info {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.register-info p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.register-info strong {
    color: #ffffff;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    background: rgba(17, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(17, 0, 0, 0.4);
}

.form-group select {
    width: 100%;
    padding: 0.875rem;
    background: rgba(17, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.form-group select option {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 0.5rem;
}

.form-group select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(17, 0, 0, 0.4);
}

.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: rgba(17, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(17, 0, 0, 0.4);
}

.btn-register {
    width: 100%;
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.5);
    margin-top: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-register:hover {
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.8);
}

.btn-back {
    background: rgba(17, 0, 0, 0.3);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Componente de Éxito */
.success-card {
    max-width: 600px;
    width: 100%;
    background: rgba(17, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(17, 0, 0, 0.3);
    padding: 4rem 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    border: 3px solid rgba(76, 175, 80, 0.5);
    animation: scaleIn 0.5s ease-out;
}

.success-icon svg {
    width: 60px;
    height: 60px;
    color: #4caf50;
    stroke: #4caf50;
    filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.6));
}

.success-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.success-message {
    color: #e0e0e0;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.success-message strong {
    color: #ffffff;
    font-weight: 600;
}

.success-submessage {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .landing-logo-img {
        width: 150px;
        height: 150px;
    }
    
    .landing-subtitle {
        font-size: 1.2rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .landing-intro {
        padding: 2rem;
    }
    
    .register {
        padding: 2rem;
    }
    
    .success-card {
        padding: 3rem 2rem;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .success-message {
        font-size: 1.1rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
    }
    
    .success-icon svg {
        width: 50px;
        height: 50px;
    }
}

