/* Reset básico */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 12px;
}

.header p{
    font-size: 18;
    
}

.header a{
    color: rgb(245, 240, 240);
    font-size: 18;
} 


.logo {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}


/* fondo con Imagen */
.fondo {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image: url('/static/img/compani/fondo.jpg');

    background-size:cover;    
    
    /*background-repeat: no-repeat;
    background-position: center;
    background-size: 60%; */

    opacity: 1;

    z-index: -1;

    pointer-events: none;
}  


/* Fondo degradado fijo  
.fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #e988c9, #9a9a9a,#FDE7E7);
}

.fondo p{
    padding: 10px;
    text-align: center;  
    font-size: 16;
}
 */




/* Centrado total */
.contenedor-login {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;

}


/* Caja */
.login-box {
    background:#f5bce8;
    padding: 35px;
    border-radius: 50px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 14px;
}


/* Caja */
.login-box2 {

    background:#f5bce8;
    padding: 10px;
    border-radius: 50px;
    width: 600px;
    max-width: 100%;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
    text-align:center;
    font-size: 12px;
}


.login-box2 table {
    width: 100%;
    border-collapse: collapse;
    
}

.login-box2 tr {    
    font-size: 10px;
    border-bottom: 2px solid #a69595;
}


.login-box p{
   font-size: 12;
}

/* Input */
.login-box input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.usuario {
    margin-top: 5px;
    font-size: 14px;
    color: #e8e4e4;
}
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical; /* permite agrandar hacia abajo */
    font-family: inherit;
}     

/* Botón */
.botonsombra {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 15px;
    background: #2c2123;
    color: #fde7e7;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2);
}

.botonsombra:hover {
    background: #1e3c72;
}

.botonsombrach{
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: none;
    border-radius: 10px;

    background: #2a5298;
    color: white;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2);
}

/* Error */
.error {
    background: #ffdddd;
    color: #a94442;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}


.boton-back a {
    padding: 8px;
    box-sizing: border-box;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    background: #2c2123;
    color: #fde7e7;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2);
}

.boton-back a:hover { 
    background: #1abc9c;
    transform: translateY(-2px);
}

.boton-confirmar {
    padding: 8px;
    box-sizing: border-box;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    background:  #5f6c27;
    color: white;

    font-size: 12px;
    cursor: pointer;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2);
}

.boton-confirmar:hover {
    background: #1abc9c;
    transform: translateY(-2px);
}

/* Link */
.txtohiper {
    display: block;
    margin-top: 15px;
    color: #2a5298;
    text-decoration: none;
    font-size: 16px;
}
.txtohiper:hover {
    text-decoration: underline;
}

.contenedor-productos {
    width:70%;
    max-width: 800px;
    margin: 0 auto; /* 🔥 centra horizontal */
    padding: 20px;
}

.textobusca{
    width: 50%;
    padding: 12px;
    border-radius: 8px;
    font-size: 12;
    height: 12px;
}

.botonsombrach2{
    width: 30%;
    padding: 8px;
   /* box-sizing: border-box;*/
    border: none;
    border-radius: 10px;

    background: #2C2123;
    color: white;
    font-size: 12;
    cursor: pointer;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2); 
}

.botonsombrach3{
    width: 30%;
    padding: 8px;
   /* box-sizing: border-box;*/
    border: none;
    border-radius: 0px;

    background: #2a5298;
    color: white;
    font-size: 12;
    cursor: pointer;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2); 
}

.botonsombra:hover{
    background: #1abc9c;
    transform: translateY(-2px);
}

.botonsombrach:hover{
    background: #1abc9c;
    transform: translateY(-2px);
}

.botonsombrach2:hover{
    background: #1abc9c;
    transform: translateY(-2px);
}

.botonsombrach3:hover{
    background: #1abc9c;
    transform: translateY(-2px);
}

.menu-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 10px;

}

.menu-links a {
    text-align: center;
    text-decoration: none;
    
     background:  #021659;
    color:#f5bce8;
    padding: 5px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.25s ease;
    
    box-shadow: 10px 10px 10px rgba(0,0,0,0.2);
}

.menu-links a:hover {
    background: #1abc9c;
    transform: translateY(-2px);
}


.producto img {
    width: 100%;
    height: 360px;          /* tamaño fijo más pequeño */
    object-fit: contain;    /* NO deforma la imagen */
    margin-bottom: 10px;

}

.producto h4 {
    text-align: center;
    margin: 10px 0;
    color: rgb(245, 240, 240)
}


.tallas {

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;


}

.tallas button {
    margin: 3px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    
    border-radius: 6px;
    transition: 0.2s;
}

/* Hover */
.tallas button:hover {
    background: #ddd;
}

/* ✅ TALLA SELECCIONADA */
.tallas button.activa {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}

 .links-legales a {
    font-size: 14px;
    color: blue;
}

.links-legales a:hover {
   font-weight: bold;
}


.redes-sociales {
    margin-top: 15px;
    text-align: center;
}

.redes-sociales a {
    display: inline-block;
    margin: 0 8px;
}

.redes-sociales img {
    width: 28px;
    height: 28px;
    transition: 0.2s;
}

.redes-sociales img:hover {
    transform: scale(1.2);
}

.img-producto {
    cursor: pointer;
    transition: transform 0.2s;
}

.img-producto:hover {
    transform: scale(1.05);
}

.precio-box {
    text-align: center;   /* 🔥 CLAVE */
    width: 100%;
  
}

/* Precio normal */
.precio {
    display: inline-block;
    background: rgb(244, 244, 238);
    color: rgb(5, 0, 0);

    font-weight: bold;
    font-size: 20px;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Oferta */
.badge-oferta {
    display: inline-block;   /* 👈 importante */
    
    background: yellow;
    color: red;
    font-size: 20px;
    font-weight: bold;

    padding: 10px 20px;
    border-radius: 5px;

    animation: parpadeo 1s infinite;
}


/* Nuevo */
.badge-nuevo {
    display: inline-block;   /* 👈 importante */    
    background: rgb(113, 171, 3);
    color: rgb(251, 249, 249);
    font-size: 20px;
    font-weight: bold;

    padding: 10px 20px;
    border-radius: 5px;

    animation: parpadeo 1s infinite;
}


.cantidad-box {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 2px;
}

.cantidad-box input {
    width: 45px;           /* 👈 tamaño fijo */
    max-width: 45px;       /* 👈 evita que crezca */
    text-align: center;
    padding: 2px;
    font-size: 14px;
}

.cantidad-box button {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

/* Animación */
@keyframes parpadeo {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

.add-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 4px;
    max-width: 370px;
}
.add-box .inventario {
    display: flex;
    font-size: 13px;
    color:  #082b68;
}

/* Control de cantidad */
.cantidad-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cantidad-control input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
}

/* Botones + y - */
.cantidad-control button {
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

/* Botón agregar separado */
.btn-agregar {
    margin-left: 10px;
    padding: 4px 8px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .cantidad-box input {
        width: 40px;
        max-width: 40px;
        font-size: 13px;
    }

    .cantidad-box button {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}
/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 120%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
     text-align: center;
}


.modal-contenido {

   margin: auto;
    display: block;

    max-width: 95%;
    max-height: 95%;
     
} 

.cerrar {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation: zoom 0.3s ease;
}

.img-producto {
    cursor: zoom-in;
}


#btnTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* oculto al inicio */
    background-color:  #5f6c27;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#btnTop:hover {
    background-color: #28a745;
    
}

@keyframes zoom {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .botonsombrach {
        font-size: 14px;
        padding: 10px;
    }
}