* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(30, 20, 20, 0.5) 100%), url('background.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 17, 30, 0.2) 0%, rgba(33, 37, 41, 0.4) 100%);
    z-index: 1;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    z-index: 2;
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.8s ease-out;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    color: #ffffff;
}

.subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.contest-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Efecto flotante del label */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    color: #fff;
    background: #e63946;
    /* Rojo de promociones */
    padding: 2px 8px;
    border-radius: 6px;
    transform: translateY(0);
    font-weight: 600;
}

/* Disclaimers */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.checkbox-group:hover {
    background: rgba(0, 0, 0, 0.35);
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #e63946;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.info-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ebebeb;
    text-align: justify;
    margin-bottom: -5px;
}

.checkbox-group label {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #ebebeb;
    cursor: pointer;
    text-align: justify;
}

.checkbox-group a {
    color: #48cae4;
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-group a:hover {
    color: #90e0ef;
}

.submit-btn {
    background: #e63946;
    /* Taste of America vibrant red */
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.success-msg {
    margin-top: 15px;
    background: rgba(42, 157, 143, 0.9);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    animation: fadeIn 0.4s;
}

/* Modal QR */
.qr-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    max-width: 160px;
}

.qr-container:hover {
    transform: scale(1.05);
}

.qr-container p {
    color: #333;
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #ccc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header de Logos */
.top-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.logo-taste {
    position: absolute;
    top: 30px;
    left: 50px;
}

.logo-taste-right {
    position: absolute;
    top: 30px;
    right: 50px;
}

.logo-taste img,
.logo-taste-right img {
    height: 70px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
    animation: fadeIn 1s ease-out;
    object-fit: contain;
}

.logo-aircanada {
    position: absolute;
    top: 110px;
    left: 50px;
}

.logo-aircanada-right {
    position: absolute;
    top: 110px;
    right: 50px;
}

.logo-aircanada img,
.logo-aircanada-right img {
    height: 70px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    animation: fadeIn 1s ease-out;
    object-fit: contain;
}

/* --- ESTILOS DE LA VENTANA MODAL DE BASES LEGALES --- */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-body {
    overflow-y: auto;
    padding-right: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.modal-body h3 {
    font-size: 1.05rem;
    color: #e63946;
    margin-top: 25px;
    margin-bottom: 8px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #111;
    text-decoration: none;
}

.modal-link {
    color: #e63946;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.modal-link:hover {
    color: #d62828;
}

@media (max-width: 768px) {
    .qr-container {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 30px;
        order: 3;
    }

    body {
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px 15px;
        padding-top: 150px;
    }

    .top-logos {
        position: absolute;
        top: 20px;
        left: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        pointer-events: none;
    }

    .logo-taste,
    .logo-aircanada {
        position: static;
        transform: none;
        left: auto;
        top: auto;
    }

    .logo-taste-right,
    .logo-aircanada-right {
        display: none;
    }

    .logo-taste img,
    .logo-taste-right img {
        height: 40px;
    }

    .logo-aircanada img,
    .logo-aircanada-right img {
        height: 40px;
    }
}