/* ============================================
   LANDING PAGE CSS - VERSIÓN FUNCIONAL
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

/* Contenedor principal */
.landing-container {
    min-height: 100vh;
    height: auto;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a14 50%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
}

/* Landing content wrapper */
.landing-content {
    flex: 1;
    width: 100%;
}

/* Hero section */
/* Hero section */
.landing-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: flex-start;
}

/* Texto izquierda */
.hero-text {
    padding-right: 20px;
}

.logo-large h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.logo-large .highlight {
    color: #ec4899;
    text-shadow: 0 0 30px rgba(236, 72, 153, 0.5);
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
}

.accent-text {
    color: #fb7185;
}

.hero-text p {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Trust badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    font-size: 2rem;
}

.trust-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.trust-info p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

/* Auth Box - Caja de login/registro */
.auth-box-v2 {
    background: linear-gradient(145deg, #1e1e2e 0%, #0f0f1a 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

#login-form h2,
#register-form h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Input groups */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ec4899;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.input-group input::placeholder {
    color: #64748b;
}

/* Password group con toggle */
.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    opacity: 0.7;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-options a {
    color: #ec4899;
    text-decoration: none;
    font-size: 0.9rem;
}

.form-options a:hover {
    text-decoration: underline;
}

/* Botones */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Toggle form */
.toggle-form {
    text-align: center;
    margin-top: 25px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.toggle-form a {
    color: #ec4899;
    font-weight: 700;
    text-decoration: none;
}

.toggle-form a:hover {
    text-decoration: underline;
}

/* Error message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* Formulario de registro */
#register-form {
    display: none;
}

#register-form .form-field {
    margin-bottom: 18px;
}

#register-form input,
#register-form select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
}

#register-form input:focus,
#register-form select:focus {
    outline: none;
    border-color: #ec4899;
    background: rgba(255, 255, 255, 0.08);
}

#register-form select {
    cursor: pointer;
}

#register-form label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* ============================================
   FOOTER - FIXED POSITIONING
   ============================================ */

.landing-footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    /* Asegurar que esté fuera del grid */
    grid-column: 1 / -1;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ec4899;
}

.landing-footer p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }

    .hero-text {
        padding-right: 0;
    }

    .logo-large h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .auth-box-v2 {
        padding: 30px 25px;
    }

    .footer-links {
        gap: 20px;
    }

    .landing-footer {
        padding: 25px 15px;
    }
}

/* Animación shake para errores */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s;
}