/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F4F7FC;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.app-wrapper {
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

/* HEADER */
.top-header-white {
    background: #FFFFFF;
    width: 100%;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.header-container-white {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    min-height: 68px;
}

.header-left-white {
    display: flex;
    align-items: center;
}

.logo-wrapper-white {
    display: flex;
    align-items: center;
}

.header-logo-img-white {
    max-height: 59px;
    width: auto;
    display: block;
}

.logo-text-fallback-white {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #0A2540 0%, #1F6E8C 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: none;
}

.header-logo-img-white:not([src]), 
.header-logo-img-white[src=""],
.header-logo-img-white[src="#"] {
    display: none;
}

.header-logo-img-white:not([src]) + .logo-text-fallback-white,
.header-logo-img-white[src=""] + .logo-text-fallback-white,
.header-logo-img-white[src="#"] + .logo-text-fallback-white {
    display: block;
}

.header-right-white {
    display: flex;
    align-items: center;
}

.elige-ganar-badge-white {
    background: #F0F7FC;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #1F6E8C;
    letter-spacing: -0.2px;
    border: 1px solid #E2EEF7;
    transition: all 0.2s;
}

.elige-ganar-badge-white:hover {
    background: #E8F3FA;
    transform: translateY(-1px);
}

/* MAIN CONTENT */
.main-content {
    padding: 24px 20px 32px 20px;
    background: #FFFFFF;
    min-height: calc(100vh - 68px);
}

/* ============================================ */
/* SORTEO MAZDA 2026 - PANTALLA COMPLETA */
/* ============================================ */

.sorteo-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sorteo-container {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #E8F0F5;
    position: relative;
    transition: all 0.3s ease;
}

.sorteo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0F7FC;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #1F6E8C;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.sorteo-badge i {
    font-size: 13px;
    color: #00b86f;
}

.sorteo-title {
    font-size: 26px;
    font-weight: 800;
    color: #0A2540;
    margin-bottom: 10px;
    line-height: 1.2;
}

.mazda-highlight {
    background: linear-gradient(135deg, #0e915f, #00b86f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.sorteo-description {
    font-size: 13px;
    color: #6F8AAC;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* CONTENEDOR DE IMÁGENES */
.camioneta-img-container {
    background: #F8FBFE;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #EDF3F8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
}

.camioneta-img-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #00b86f;
}

.camioneta-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.camioneta-img:hover {
    transform: scale(1.02);
}

.img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #F0F7FC, #E8F3FA);
    border-radius: 20px;
    width: 100%;
}

.img-placeholder i {
    font-size: 64px;
    color: #00b86f;
    opacity: 0.5;
}

.img-placeholder span {
    font-size: 14px;
    color: #6F8AAC;
    font-weight: 500;
}

/* ============================================ */
/* DESCRIPCIÓN DEL SORTEO MAZDA (ENTRE IMÁGENES) */
/* ============================================ */

.sorteo-info-card {
    background: linear-gradient(135deg, #F8FBFE, #F0F7FC);
    border-radius: 24px;
    padding: 20px;
    margin: 16px 0;
    display: flex;
    gap: 16px;
    border: 1px solid #E2EEF7;
    transition: all 0.3s ease;
}

.sorteo-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.sorteo-info-icon {
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00b86f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sorteo-info-text {
    flex: 1;
}

.sorteo-info-text h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0A2540;
    margin-bottom: 8px;
}

.sorteo-info-text p {
    font-size: 13px;
    color: #5B7C9C;
    line-height: 1.5;
}

.sorteo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #EDF3F8;
    margin-top: 8px;
}

.sorteo-fechas, .sorteo-premio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #5B7C9C;
}

.sorteo-fechas i, .sorteo-premio i {
    color: #00b86f;
    font-size: 14px;
}

.sorteo-btn {
    background: linear-gradient(135deg, #0e915f, #00b86f);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
}

.sorteo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 111, 0.3);
}

/* ============================================ */
/* LOGIN SECTION - PANTALLA COMPLETA */
/* ============================================ */

.login-section {
    animation: fadeIn 0.5s ease;
}

.inputs-directos {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 0;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header i {
    font-size: 42px;
    color: #1F6E8C;
    background: #EFF7FF;
    padding: 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #6F8AAC;
}

/* ============================================ */
/* FOTO EN EL LOGIN - MÁS GRANDE */
/* ============================================ */

.foto-pequena-login {
    text-align: center;
    margin: 15px 0 25px 0;
}

.login-small-img {
    width: 200px;
    height: auto;
    display: inline-block;
    border-radius: 20px;
}

.form-directo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2C4C6E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-group input {
    width: 100%;
    padding: 16px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #E2EAF2;
    border-radius: 16px;
    background: #FFFFFF;
    transition: all 0.2s;
    outline: none;
    font-weight: 500;
}

.field-group input:focus {
    border-color: #1F6E8C;
    box-shadow: 0 0 0 3px rgba(31, 110, 140, 0.1);
}

.password-wrapper-directo {
    position: relative;
    width: 100%;
}

.password-wrapper-directo input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #E2EAF2;
    border-radius: 16px;
    background: #FFFFFF;
    transition: all 0.2s;
    outline: none;
    font-weight: 500;
}

.password-wrapper-directo input:focus {
    border-color: #1F6E8C;
    box-shadow: 0 0 0 3px rgba(31, 110, 140, 0.1);
}

.toggle-pwd-directo {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8FA3BC;
    font-size: 18px;
    transition: color 0.2s;
}

.toggle-pwd-directo:hover {
    color: #1F6E8C;
}

.form-options-directo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 4px 0 4px;
}

.checkbox-directo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4C6F8F;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-directo input {
    width: 16px;
    height: 16px;
    accent-color: #1F6E8C;
    cursor: pointer;
}

.forgot-link-directo {
    font-size: 13px;
    color: #1F6E8C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-link-directo:hover {
    text-decoration: underline;
    color: #0A2540;
}

.btn-login-directo {
    background: linear-gradient(135deg, #0e915f 0%, #00b86f 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 209, 128, 0.3);
}

.btn-login-directo:hover:not(:disabled) {
    background: #00b86f;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 209, 128, 0.4);
}

.btn-login-directo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-directo {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #5B7C9C;
    padding-top: 16px;
    border-top: 1px solid #EEF3F8;
}

.register-directo a {
    color: #1F6E8C;
    text-decoration: none;
    font-weight: 700;
}

.register-directo a:hover {
    text-decoration: underline;
}

.terms-link {
    color: #1F6E8C;
    text-decoration: none;
    font-weight: 700;
}

.terms-link:hover {
    text-decoration: underline;
    color: #0A2540;
}

/* Responsive */
@media (max-width: 640px) {
    .app-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .sorteo-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header-container-white {
        padding: 12px 16px;
        min-height: 60px;
    }
    
    .header-logo-img-white {
        max-height: 50px;
    }
    
    .logo-text-fallback-white {
        font-size: 28px;
    }
    
    .elige-ganar-badge-white {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .sorteo-container {
        padding: 18px 16px;
    }
    
    .sorteo-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .camioneta-img-container {
        padding: 12px;
    }
    
    .sorteo-info-card {
        padding: 16px;
    }
    
    .sorteo-info-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .sorteo-info-text h3 {
        font-size: 16px;
    }
    
    .sorteo-info-text p {
        font-size: 12px;
    }
    
    .login-small-img {
        width: 160px;
    }
}

@media (max-width: 380px) {
    .sorteo-title {
        font-size: 20px;
    }
    
    .form-options-directo {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .login-small-img {
        width: 140px;
    }
}