/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

:root {
    --primary-blue: #0054a6;
    --dark-blue: #374a67;

    --text-color: #202020;
    --muted-text: #5f6670;

    --border-color: #d7d7d7;
    --background-color: #ffffff;

    --success-color: #1c7c3f;
    --error-color: #b3261e;

    --page-max-width: 520px;

    --border-radius: 6px;
}


/* =========================================
   REINICIO DE ESTILOS
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: clip;
}

body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text-color);
    background-color: var(--background-color);
}

button,
input,
select {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

.page-container {
    width: 100%;
    max-width: var(--page-max-width);

    margin: 0 auto;
    padding: 24px 30px 40px;
}


/* =========================================
   ENCABEZADO
========================================= */

.main-header {
    width: 100%;

    margin-bottom: 22px;
}


/* ==========================
   FILA SUPERIOR
========================== */

.top-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;

}

.main-logo {
    width: 260  px;
    max-width: none;

    margin-left: -20px;
    margin-top: -15px;

    object-fit: contain;

    flex-shrink: 0;
}


/* ==========================
   MENÚ
========================== */

.menu-placeholder {

    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: -14px;

}

.menu-placeholder span {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 18px;

    font-weight: 700;

    line-height: 26px;

    letter-spacing: 0;

    color: #222;

}

.menu-dots {

    padding: 0;

    font-size: 22px;
    line-height: 1;

    color: #444;

    background: transparent;
    border: none;

    cursor: pointer;

}


/* ==========================
   BARRA NEGRA
========================== */

.raffle-navigation {

    display: flex;
    align-items: center;

    width: calc(100% + 60px);

    margin-left: -30px;

    height: 42px;

    margin-bottom: 28px;
    padding-left: 18px;

    color: white;
    background: #2d2928;

    font-size: 18px;
    font-weight: 600;

}

/* ==========================
   TÍTULO
========================== */

.header-title p {

    color: #222222;

    font-size: 22px;

    font-weight: 400;

    line-height: 1.3;

}

/* =========================================
   BANNER DEL SORTEO
========================================= */

.raffle-banner {
    display: flex;
    align-items: center;
    gap: 30px;

    width: calc(100% + 60px);

    margin-left: -30px;

    min-height: 62px;

    margin-bottom: 20px;
    padding: 14px 30px;

    color: #ffffff;
    background-color: var(--dark-blue);
}

.raffle-banner p {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}


/* =========================================
   RELOJ DEL BANNER
========================================= */

.raffle-clock {
    position: relative;

    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    border: 2px solid #ffffff;
    border-radius: 50%;
}

.clock-hand {
    position: absolute;
    left: 50%;
    top: 50%;

    display: block;

    width: 2px;

    background-color: #ffffff;
    border-radius: 10px;

    transform-origin: bottom center;
}

.clock-hand-hour {
    height: 8px;

    transform:
        translate(-50%, -100%)
        rotate(0deg);
}

.clock-hand-minute {
    height: 10px;

    transform:
        translate(-50%, -100%)
        rotate(90deg);
}


/* =========================================
   INTRODUCCIÓN DEL FORMULARIO
========================================= */

.form-introduction {
    margin-bottom: 52px;
}

.form-introduction h1 {
    padding-bottom: 10px;

    color: var(--primary-blue);

    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;

    border-bottom: 1px solid #e0e0e0;
}


/* =========================================
   FORMULARIO
========================================= */

.registration-form {
    width: 100%;
}

.form-section {
    margin-bottom: 12px;
}

.form-section h2 {
    margin-bottom: 13px;

    color: var(--primary-blue);

    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.section-divider {
    width: 100%;
    height: 1px;

    margin-bottom: 15px;

    background-color: #e0e0e0;
}


/* =========================================
   CAMPOS DEL FORMULARIO
========================================= */

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 41px;

    padding: 0 12px;

    color: #111111;
    background-color: #ffffff;

    border: 1px solid #cfcfcf;
    border-radius: var(--border-radius);

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.form-group select {
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-blue);

    box-shadow:
        0 0 0 2px rgba(0, 84, 166, 0.12);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}


/* =========================================
   ETIQUETAS OCULTAS
========================================= */

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/* =========================================
   BOTÓN DE ENVÍO
========================================= */

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 205px;
    min-height: 41px;

    margin-top: 30px;
    padding: 10px 20px;

    color: #ffffff;
    background-color: var(--primary-blue);

    border: none;
    border-radius: 3px;

    font-size: 14px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.submit-button:hover {
    background-color: #003f7d;
}

.submit-button:active {
    transform: scale(0.98);
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* =========================================
   MENSAJE DEL FORMULARIO
========================================= */

.form-message {
    min-height: 20px;

    margin-top: 15px;

    font-size: 14px;
    line-height: 1.4;
}

.form-message:empty {
    display: none;
}

.form-message.success {
    color: var(--success-color);
}

.form-message.error {
    color: var(--error-color);
}


/* =========================================
   TEXTO INFERIOR
========================================= */

.raffle-description p {
    margin-top: 28px;

    color: #6b7280;

    font-family: "Arimo", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;

    line-height: 21px;
    text-align: justify;
}


/* =========================================
   CELULARES PEQUEÑOS
========================================= */

@media (max-width: 380px) {

    .page-container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .header-title p {
        font-size: 21px;
    }


    .raffle-banner {
        gap: 20px;
        padding-right: 22px;
        padding-left: 22px;
    }

    .submit-button {
        width: 100%;
    }

}


/* =========================================
   TABLETS Y COMPUTADORES
========================================= */

@media (min-width: 700px) {

    body {
        background-color: #f4f5f7;
    }

    .page-container {
        max-width: 620px;

        margin-top: 40px;
        margin-bottom: 0px;
        padding: 38px 40px 40px;

        background-color: #ffffff;

        border: 1px solid #e5e5e5;
        border-radius: 8px;
    }

    .header-title p {

        color: #222222;

        font-size: 22px;

        font-weight: 400;

        line-height: 1.3;

    }


    .main-logo {
        width: 190px;
    }

}

/* =========================================
   MENSAJES DE ERROR
========================================= */

/* =========================================
   MENSAJES DE ERROR
========================================= */

.field-error {
    display: none;

    margin-top: 7px;
    padding-left: 11px;

    color: #ff1f2d;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.field-error.active {
    display: block;
}


/* =========================================
   CAMPO CON ERROR
========================================= */

.form-group select.field-invalid,
.form-group input.field-invalid {
    border: 1px solid #ff1f2d !important;
    box-shadow: none !important;
}

/* =========================================
   FOOTER
========================================= */

.main-footer {
    width: calc(100% + 60px);
    margin-left: 0px;
    margin-top: 0px;

    color: #ffffff;
}


/* =========================================
   PARTE SUPERIOR DEL FOOTER
========================================= */

.footer-top {
    padding: 24px 16px 26px;

    background-color: #292827;
}


/* =========================================
   ACORDEONES
========================================= */

.footer-accordion {
    width: 100%;
    margin-bottom: 8px;

    overflow: hidden;

    background-color: #363638;

    border-radius: 8px;
}


/* Botón del acordeón */

.footer-accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 56px;

    padding: 0 16px;

    color: #ffffff;
    background-color: #363638;

    border: none;

    font-family: inherit;
    font-size: 18px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;
}


/* Flecha */

.footer-arrow {
    width: 13px;
    height: 13px;

    margin-right: 4px;

    border-right: 1.5px solid #ffffff;
    border-bottom: 1.5px solid #ffffff;

    transform: rotate(45deg);

    transition: transform 0.25s ease;
}


/* =========================================
   CONTENIDO DEL ACORDEÓN
========================================= */

.footer-accordion-content {
    display: none;

    padding: 4px 16px 14px;

    background-color: #363638;
}


/* Cuando esté abierto */

.footer-accordion.active .footer-accordion-content {
    display: flex;
    flex-direction: column;
}


/* Girar flecha cuando esté abierto */

.footer-accordion.active .footer-arrow {
    transform: rotate(225deg);
}


/* Enlaces internos */

.footer-accordion-content a {
    display: block;

    padding: 9px 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.3;

    text-decoration: none;
}


/* =========================================
   TEXTO INFORMATIVO
========================================= */

.footer-description {
    margin-top: 20px;
}

.footer-description p {
    margin: 0;

    color: #ffffff;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}


/* =========================================
   IMAGEN REDES SOCIALES
========================================= */

.footer-social-image-container {
    margin-top: 24px;
}

.footer-social-image {
    display: block;

    width: 250px;
    height: auto;

    object-fit: contain;
}


/* =========================================
   PARTE INFERIOR DEL FOOTER
========================================= */

.footer-bottom {
    padding: 24px 16px 30px;

    background-color: #454648;
}

.footer-bottom p {
    margin: 0 0 24px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.4;
}


/* Copyright */

.footer-bottom .footer-copyright {
    margin-top: 30px;
    margin-bottom: 22px;
}


/* =========================================
   PARTE LEGAL
========================================= */

.footer-legal {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    width: 100%;

    color: #ffffff;
}

.footer-legal span {
    font-size: 8px;
    font-weight: 600;
}

.footer-legal-image {
    display: block;

    width: 240px;
    height: auto;

    object-fit: contain;
}

/* =========================================
   AJUSTE FOOTER - PC
========================================= */

@media (min-width: 700px) {

    .main-footer {
        width: calc(100% + 80px);
        margin-left: 0px;
    }

}


/* =========================================
   IMAGEN DEL FOOTER
========================================= */

.footer-image-container {
    margin-top: 28px;
    margin-bottom: 12px;
}

.footer-image {
    display: block;

    width: 240px;
    height: auto;

    object-fit: contain;
}

/* =========================================
   PÁGINA DE CONFIRMACIÓN
========================================= */

.confirmation-page {
    width: 100%;
    min-height: 100vh;

    padding: 40px 16px 30px;

    background-color: #ffffff;
}


/* =========================================
   TARJETA DE CONFIRMACIÓN
========================================= */

.confirmation-card {
    width: 100%;
    max-width: 520px;

    margin: 0 auto;

    overflow: hidden;
}


/* =========================================
   IMAGEN SUPERIOR
========================================= */

.confirmation-image-container {
    width: 100%;
}

.confirmation-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* =========================================
   CONTENIDO ROSADO
========================================= */

.confirmation-content {
    padding: 20px 20px 24px;

    background-color: #efabc8;
}


/* Texto pequeño */

.confirmation-small-title {
    margin-bottom: 4px;

    color: #111111;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}


/* Título principal */

.confirmation-content h1 {
    margin-bottom: 12px;

    color: #000000;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.12;
}


/* Texto inferior */

.confirmation-description {
    margin: 0;

    color: #111111;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}


/* =========================================
   TABLET Y PC
========================================= */

@media (min-width: 700px) {

    .confirmation-page {
        display: flex;
        justify-content: center;
        align-items: flex-start;

        padding-top: 30px;

        background-color: #f4f5f7;
    }

    .confirmation-card {
        max-width: 760px;
    }

    .confirmation-content {
        padding: 26px 30px 30px;
    }

    .confirmation-small-title {
        font-size: 15px;
    }

    .confirmation-content h1 {
        font-size: 32px;
    }

    .confirmation-description {
        font-size: 14px;
    }

}


/* =========================================
   IMAGEN JUNTO AL TÍTULO DE CONFIRMACIÓN
========================================= */

.confirmation-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.confirmation-title-row h1 {
    flex: 1;
}

.confirmation-side-image {
    display: block;

    width: 105px;
    height: auto;

    flex-shrink: 0;

    object-fit: contain;
}

/* =========================================
   BOTÓN ENVIANDO / VERIFICANDO
========================================= */

.submit-button {
    position: relative;
}


/* Texto del botón */

.submit-button-text {
    display: inline-block;
}


/* Spinner oculto por defecto */

.submit-spinner {
    display: none;

    width: 16px;
    height: 16px;

    margin-left: 10px;

    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation: submitSpinner 0.8s linear infinite;
}


/* Estado mientras se está enviando */

.submit-button.is-loading {
    background-color: #2f74bf;

    cursor: not-allowed;

    opacity: 1;
}


/* Mostrar spinner */

.submit-button.is-loading .submit-spinner {
    display: inline-block;
}


/* Animación */

@keyframes submitSpinner {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

/* =========================================
   AJUSTE FINAL FOOTER - CELULAR
========================================= */

@media (max-width: 699px) {

    .footer-legal-image {
        transform: translateX(-15px);
    }

    .main-footer {
        width: 100% !important;
        max-width: 100%;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box;
    }

    .footer-top,
    .footer-bottom {
        width: 100%;
        max-width: 100%;

        padding-left: 16px;
        padding-right: 16px;

        box-sizing: border-box;
    }

    .footer-accordion {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

}