* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    animation: fadeIn 1s ease;
    padding: 20px 15px;
    overflow-x: hidden;
}

/* ===== FONDO FIJO REAL (soluciona bug de "fixed" en móvil) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('img/img1.png') center/cover no-repeat;
    z-index: -1;
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
    padding: 26px 30px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    animation: slideIn 0.8s ease;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== BADGE PREMIUM AZUL OSCURO ===== */
.header-badge {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0a1f44, #143a70);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(10, 31, 68, 0.5);
}

.header-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -75%; }
    50% { left: 125%; }
    100% { left: 125%; }
}

.badge-icon {
    width: 12px;
    height: 12px;
    fill: #ffe27a;
    flex-shrink: 0;
}

/* ===== TÍTULO AZUL OSCURO ===== */
.brand {
    text-align: center;
    margin: 0;
    line-height: 1;
}

.brand-first {
    display: block;
    font-size: 1rem;
    font-weight: 300;
    color: #7a8699;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.brand-last {
    display: block;
    font-size: 2.3rem;
    font-weight: 700;
    color: #0a1f44;
    letter-spacing: -1px;
}

.title-accent {
    width: 40px;
    height: 3px;
    margin: 10px auto 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0a1f44, #1e4a8a);
}

p {
    color: #6b7280;
    margin-bottom: 16px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
}

form {
    display: flex;
    flex-direction: column;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

.icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #0a1f44;
    opacity: 0.65;
    pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    background-color: #fafafa;
    color: #333;
    transition: all 0.25s ease;
}

select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%230a1f44'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

select:disabled {
    background-color: #eeeeee;
    color: #aaa;
    cursor: not-allowed;
}

input:focus,
select:focus {
    outline: none;
    border-color: #0a1f44;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.12);
}

button {
    margin-top: 6px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #0a1f44, #143a70);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background: linear-gradient(90deg, #143a70, #1e4a8a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 31, 68, 0.4);
}

button span {
    transition: transform 0.25s ease;
}

button:hover span {
    transform: translateX(4px);
}

/* ===== RESPONSIVE: TABLETS Y MÓVILES ===== */
@media only screen and (max-width: 768px) {
    body::before {
        background-image: url('img/img2.png');
    }

    body {
        align-items: center;
        padding: 20px 12px;
    }

    .container {
        padding: 20px 18px;
        border-radius: 16px;
        max-width: 85%;
    }

    .brand-first {
        font-size: 0.85rem;
        letter-spacing: 2.5px;
    }

    .brand-last {
        font-size: 1.9rem;
    }

    .title-accent {
        margin: 8px auto 10px;
    }

    p {
        font-size: 0.78rem;
        margin-bottom: 12px;
    }

    .input-group {
        margin-bottom: 8px;
    }
}

/* ===== RESPONSIVE: CELULARES PEQUEÑOS ===== */
@media only screen and (max-width: 480px) {
    body {
        padding: 20px 10px;
    }

    .container {
        padding: 18px 14px;
        max-width: 90%;
    }

    .header-badge {
        font-size: 0.6rem;
        padding: 6px 12px;
        margin-bottom: 10px;
    }

    .brand-first {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .brand-last {
        font-size: 1.65rem;
    }

    p {
        font-size: 0.74rem;
        margin-bottom: 10px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select {
        font-size: 0.82rem;
        padding: 10px 12px 10px 36px;
    }

    button {
        font-size: 0.85rem;
        padding: 10px;
    }
}