/* RESET BÁSICO */
@font-face {
    font-family: 'bangkey';
    /* El nombre que usarás en tu CSS */
    src: url('../../fidelizacion/assets/font/bangkey.ttf') format('truetype');
    /* Ruta al archivo TTF */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'poppins';
    /* El nombre que usarás en tu CSS */
    src: url('../../fidelizacion/assets/font/Poppins-Regular.ttf') format('truetype');
    /* Ruta al archivo TTF */
    font-weight: normal;
    font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Usa la fuente que se asemeje más a la de la imagen (ej: Roboto, Montserrat) */
    font-family: poppins;
}

/* 🏔️ FONDO COMPLEJO */
body {
    /* Color de fondo primario */
    background: url('../img/fondo_web_azul3.png') no-repeat center center fixed;
    background-size: cover;
    flex-direction: column;
    /* Asegura disposición vertical */
    justify-content: flex-start;
    /* Comienza desde arriba */
    align-items: center;
    position: relative;
    min-height: 100vh;

}

/* Contenedor central de la página */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.color_blue {
    color: #262d59;
}

/* --- */

/* 🖼️ ENCABEZADO (HEADER) */
.main-header {
    text-align: center;
    padding: 40px 0;
    color: #fff;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-header p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 10px;
}

/* --- */

/* 🏠 CONTENIDO PRINCIPAL (MAIN CONTENT) */

.imgTitle {
    width: 50%;
}

.imgLogo {
    width: 30%;
}

video {
    display: block;
    /* Asegura que el logo esté en su propia línea */
    width: 50%;
    height: auto;
    margin: 0 auto
}


.main-content {
    flex-grow: 1;
    /* Permite que el contenido principal ocupe el espacio restante */
    padding-bottom: 50px;
}

.form-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    /* Ancho máximo para el formulario */
    margin: 0 auto;
    border-width: 4px;
    border-style: solid;
    border-color: #262d59;
    width: 75%;
}


.form-card h2 {
    color: #4b8991;
    /* Color azul verdoso de la imagen */
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    margin-top: 15px;
    margin-bottom: 5px;
}

/* --- */

/* 📸 ÁREA DE SUBIDA DE IMAGEN */
.image-upload-area {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
    /* Centra el contenido en pantallas grandes */
}

.uploaded-image-preview {
    flex-basis: 40%;
    max-width: 250px;
    border: 3px dashed #ccc;
    padding: 10px;
    border-radius: 10px;
}

.uploaded-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.upload-box {
    flex-basis: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.upload-icon {
    font-size: 4rem;
    /* Icono grande, sustituir por una imagen/SVG */
    color: #999;
    margin-bottom: 10px;
}

.upload-button {
    background-color: #262d59;
    /* Color principal de la marca */
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}





.upload-button:hover {
    background-color: #737aae;
}

/* --- */

/* 📝 ESTILOS DEL FORMULARIO */
.registration-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row {
    display: flex;
    width: 100%;
    gap: 20px;
}

.form-group {
    flex: 1;
    /* Ocupa el espacio disponible */
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 0 0 100%;
    /* Ocupa todo el ancho */
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #4b8991;
    /* Color de las etiquetas */
    font-size: 0.9rem;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    padding: 10px;
    border: 0px solid #ddd;

    font-size: 1rem;
    border-bottom: 1px solid;
}

.inpEstablecimiento {
    background-color: whitesmoke;
}





/* Checkbox de términos y condiciones */
.terms-checkbox {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.terms-checkbox input {
    margin-right: 10px;
}

.terms-checkbox a {
    color: #ff851b;
    /* Color de enlace destacado (naranja/cálido) */
    text-decoration: none;
    font-weight: 600;
}

/* Botón de envío */
.submit-button {
    background-color: #262d59;
    /* Naranja/Cálido del botón de la imagen */
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #737aae;
}

.button-container {
    width: 100%;
    /* Asegura que ocupe todo el ancho */
    display: flex;
    /* Lo convierte en un contenedor Flex */
    justify-content: center;
    /* Centra horizontalmente el contenido (el botón) */
    margin-top: 20px;
    /* Mueve el margen de arriba aquí */
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-buttons a img {
    width: 40px;
    /* Ajusta el tamaño del botón */
    height: 40px;
    transition: transform 0.3s ease;
    border-radius: 50%;
    /* Ejemplo de estilo redondeado */
}

.social-buttons a img:hover {
    transform: scale(1.1);
    /* Pequeño zoom al pasar el cursor */
}


.psubtitle {
    font-size: 1.4rem !important;
    padding-left: 15%;
    padding-right: 15%;
}

.pform {
    font-size: 1.6rem !important;
    padding-left: 5%;
    padding-right: 5%;
    text-align: center;
}

.pnegrita {
    font-weight: bold;

}

.pbono {
    text-align: center;
    padding-left: 15%;
    padding-right: 15%;
}

/* --- */

/***********story **********/
/* Estilos básicos para simular la apariencia de la imagen */
.story-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.button-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-story {

    padding: 10px 15px;
    border: 2px solid #f2f2f2;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: bangkey;
    transition: all 0.2s;
    user-select: none;
    box-shadow: 2px 3px rgba(240, 240, 240, 0.5);
    color: #262d59;
}

/* Estilo para el botón seleccionado */
.button-story.selected {
    background-color: #262d59;
    /* Fondo azul claro */
    /* border-color: #00bcd4;*/
    color: #fff;
    box-shadow: 2px 3px rgba(240, 240, 240, 0.5);
    /* Borde de color */
    /*  font-weight: bold;*/
}

.input-area {
    flex-grow: 1;
}

#story-form {
    display: flex;
    flex-direction: column;
    gap: 10px;

    border-radius: 8px;
}

#story_text {
    height: 150px;
    resize: vertical;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 100%;
    width: 100%;
    border: 1px solid rgba(240, 240, 240, 0.5);
    box-shadow: 2px 3px rgba(240, 240, 240, 0.5);
    font-family: bangkey;
}



.enviar-button {
    background-color: #262d59;
    /* Color principal de la marca */
    color: #fff;
    border: none;
    padding: 5px 25px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
    float: right;
}





.enviar-button:hover {
    background-color: #737aae;
}




/* 🦶 FOOTER (PIE DE PÁGINA) */

.main-footer {
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}


.social-icons {
    margin-bottom: 15px;
}

.social-icons img {
    width: 30px;
    /* Tamaño de los iconos sociales */
    height: 30px;
    margin: 0 8px;
    vertical-align: middle;
}



.legal-links {
    margin-top: -15px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 10px 10px 10px;
}

.legal-links a {
    text-decoration: none;
    color: #007BFF;
    margin: 0 10px;
}

.legal-links a:hover {
    text-decoration: underline;
}

.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.cookie-popup p {
    margin: 0;
}

.cookie-popup a {
    color: #e4d1b8;
    text-decoration: none;
}

.cookie-popup button {
    background-color: #e4d1b8;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 20px;
    float: right;
    margin-right: 200px;
}


/* MEDIA QUERIES PARA PANTALLAS MÁS PEQUEÑAS (ej. Móviles) */
@media (max-width: 768px) {
    .imgLogo {
        width: 50%;
    }

    .imgTitle {
        width: 80%;
    }

    .psubtitle {
        padding-left: 0%;
        padding-right: 0%;
        font-size: 1rem !important;
    }

    video {
        display: block;
        width: 80%;
        height: auto;
        margin: 0 auto;
    }

    .pform {
        padding-left: 0%;
        padding-right: 0%;
        font-size: 1rem !important;
    }

    .main-header h1 {
        font-size: 1.8rem;
    }

    .form-card {
        padding: 5px;
        /* margin: 0 10px;*/
        width: 100%;
    }

    /* En móvil, apilamos los campos del formulario */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    /* En móvil, apilamos la imagen de previsualización y la caja de carga */
    .image-upload-area {
        flex-direction: column;
        gap: 20px;
    }

    .uploaded-image-preview {
        flex-basis: 100%;
        max-width: 100%;
    }

    /* En móvil, apilamos los enlaces del footer */
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .social-icons {
        margin-bottom: 10px;
    }

    /* STORY: en móvil mostrar el textarea debajo del button-list y los botones en horizontal */
    .story-container {
        flex-direction: column;
        gap: 12px;
    }

    .button-list {
        flex-direction: column;
        gap: 12px;
    }

    .button-list .button-story {
        width: 100%;
        text-align: center;
    }

    .input-area {
        width: 100%;
        order: 2;
    }

    #story_text {
        height: 140px;
        /* Ajuste de altura para móviles */
    }
}