/* ===================== */
/* ESTILOS GENERALES */
/* ===================== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
body {
    background-image: url('../images/fondo.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed; /* efecto más elegante en móvil y PC */
    background-color: #000; /* fallback por si falla la imagen */
}

body {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    text-align: center;

    /* Tus ajustes DevTools */
    display: flex;
    flex-direction: column;
    align-items: center;

    overflow-x: hidden;
    /* Evita scroll horizontal */
    max-width: 500px;
    margin: 0 auto; 
}

header h1,
header h2 {
    margin: 10px 0;
    color: #fff;
}

/* Logo/Banner responsive */
.logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    max-width: 800px; /* en PC */
}

/* ===================== */
/* LANDING (index.php) */
/* ===================== */

.promo {
    margin: 0 auto;

   /* background-color: #444;*/
    border-radius: 8px;
    width: 95%;
}
/* Texto de la promo alineado a la izquierda */
.promo-text {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    white-space: normal;
    margin: 10px auto;
    width: 90%;
}

.promo p {
    font-size: 16px;
    line-height: 1.5;
}

/* Botones de tiendas */
.tienda-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /*margin: 20px;*/
    width: 100%;
}

.tienda-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.tienda-btn:hover {
    background-color: #45a049;
}

/* ===================== */
/* FORMULARIO tienda.php */
/* ===================== */

/* SECTION → ancho completo */
main,
main section {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a .logo {
    transition: opacity 0.2s;
}

a .logo:hover {
    opacity: 0.8;
}

/* FORMULARIO centrado según tu DevTools */
form {
    width: 100%;
    max-width: 450px;
   /* background-color: #111;*/
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;


    margin: 0 auto 30px auto;
    border-radius: 10px;
}

/* Inputs */
.inputForm {
    width: 90%;
    padding: 12px;

    border: none;
    border-radius: 6px;
    background: #eee;
    color: #000;
    font-size: 16px;
}

/* Botón Enviar */
form button {
    width: 90%;
    padding: 12px;
    background-color: red;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
}

form button:hover {
    background-color: #bb0000;
}

.labelform {
    width: 90%;
    /* mismo ancho que los inputs */
    text-align: left;
    /* alinear a la izquierda */
    font-size: 14px;
    /* más pequeños */
    color: #ccc;
    /* gris claro para no destacar demasiado */
    margin-bottom: 1px;
    /* pegados al input */
    margin-top: 2px;
    /* pegados al input */
    display: block;
    /* asegura que ocupan toda la línea */
    font-weight: normal;
}

/* ===================== */
/* ICONO CÁMARA */
/* ===================== */

.camera-icon {
    margin: 5px auto;
    display: block;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    background-color: green;
    transition: background-color 0.3s ease;
}

.camera-icon.error {
    background-color: red !important; /* Rojo cuando falta foto */
}

.camera-img {
    width: 50px;
    height: auto;
    border-radius: 50%;
}

#fotoAlert {
    color: red;
    font-size: 14px;
    display: none;
    margin:0;
}

/* ===================== */
/* PREVISUALIZACIÓN */
/* ===================== */

#preview {
    width: 100%;
    margin-top: 20px;
}

#preview h3 {
    margin-bottom: 10px;
}

#previewImg {
    width: 90%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

footer a {
    color: #4CAF50;
    /* rojo Frutas Nieves */
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
/* Botón rojo (como Enviar) */
.btn-rojo {
    background-color: red;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 90%;
    max-width: 400px;
    margin-bottom: 15px;
}

.btn-rojo:hover {
    background-color: #bb0000;
}

/* Botón verde (como botones de tienda) */
.btn-verde {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 90%;
    max-width: 400px;
}

.btn-verde:hover {
    background-color: #45a049;
}
/* Checkboxes legales */
.legal-box {
    width: 90%;
    margin-top: 15px;
    text-align: left;
    color: #ccc;
    font-size: 14px;
}

.legal-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.legal-item input[type="checkbox"] {
    transform: scale(1.2);
    margin-top: 2px;
}

.legal-item a {
    color: #4CAF50; /* rojo Frutas Nieves */
    text-decoration: underline;
}
.legal-container {
    text-align: left;
    align-items: normal;
}

#spinner-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
/* ===================== */
/* RESPONSIVE */
/* ===================== */
@media (max-width: 600px) {
    body {
        background-image: url('../images/fondo.jpg');
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
        background-attachment: fixed; /* efecto más elegante en móvil y PC */
        background-color: #000; /* fallback por si falla la imagen */
    }
    header{
        width: 100%;
    }

    .logo {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    .tienda-buttons {
        grid-template-columns: 1fr 1fr;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    form {
        max-width: 350px;
    }
    .promo-text {
        font-size: 15px;
        line-height: 1.5;
        width: 95%;
    }
}

/* Tablet: ligeramente más estrecho */
@media (min-width: 601px) and (max-width: 1024px) {
    .logo {
        width: 90%;
        max-width: 700px;
    }
}