
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html, body{
    overflow-x: hidden;
}

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}
:root {
    --padding-container: 100px 0;

    /* Colores universales */
    --color-black: #000000;
    --color-dark-gray: #1f1f1f;
    --color-gray: #3f3f3f;
    --color-red: #ff1111;
    --color-dark-red: #bb0006;
    --color-white: #ffffff;
    --color-dark-white: #bdbdbd;

    --color-title: var(--color-dark-gray);
}
/* BUSCADOR */
.buscador {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    /* Aseguramos que el padding no sume al ancho total */
    box-sizing: border-box; 
}

.form-buscador {
    display: flex;
    gap: 10px;
    /* PERMITE QUE LOS ELEMENTOS BAJEN SI NO CABEN */
    flex-wrap: wrap; 
    justify-content: center;
    width: 100%;
    max-width: 600px; /* Opcional: para que no se estire infinito en PC */
}

.form-buscador select,
.form-buscador button {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    /* HACE QUE EN MÓVILES CADA UNO OCUPE SU ESPACIO DISPONIBLE */
    flex: 1 1 auto; 
    min-width: 150px; /* Evita que se hagan demasiado pequeños */
}

.form-buscador button {
    background: #222;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    /* El botón suele verse mejor si no se estira tanto como el select */
    flex: 0 1 auto; 
}

.form-buscador button:hover {
    background: #444;
}

/* CATALOGO */
.catalogo{
    width:90%;
    margin:auto;
    align-items: center;
}

/* CONTENEDOR GRID */
.contcat {
    display: grid;
    /* Mantiene tus columnas responsivas */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
    
    /* CENTRADO CLAVE: */
    justify-content: center; /* Centra las columnas si hay espacio sobrante */
    justify-items: center;    /* Centra el contenido (article) dentro de cada celda */
}

@media (min-width: 1024px) {
    .contcat{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(320px, .2fr));
    gap:20px;
    margin-top:20px;
}
}

@media (min-width: 700px){
    .contcat{
        grid-template-columns:repeat(auto-fit, minmax(320px, .2fr));
    }
}

/* CARD PRODUCTO */
.producto{
    background:white;
    border-radius:12px;
    padding:15px;
    text-align:center;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    transition:0.3s;
}

.producto:hover{
    transform:translateY(-5px);
    box-shadow:0 6px 15px rgba(0,0,0,0.15);
}

.catimg {
    width: 100%;
    aspect-ratio: 1 / 1; /* Esto fuerza la forma cuadrada */
    object-fit: cover;    /* Evita que la imagen se estire o deforme */
    border-radius: 8px;
}

.titpro {
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase; /* El mayúsculas le da un aire premium */
    letter-spacing: 1px;       /* Espaciado entre letras */
    font-size: 1rem;
    color: #19242e;
}
.titpro2 {
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase; /* El mayúsculas le da un aire premium */
    letter-spacing: 1px;       /* Espaciado entre letras */
    font-size: 1.5rem;
    color: #19242e;
}
@media (max-width: 700px){
    .titpro2{
    font-size: 1rem;
    }
}

.stars{
    color:yellow;
    font-size:14px;
}

.catpre{
    font-weight:bold;
    font-size:18px;
    margin-top:5px;
}

/* NAVEGADOR */
.navegador{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin:30px 0;
}

.navegador button{
    background:none;
    border:none;
    cursor:pointer;
}

.navegador img{
    width:30px;
}

/*BOTON DE COMPRA*/
.btn-comprar{
    margin-top:12px;
    padding:10px;
    width:100%;
    border:none;
    border-radius:50px;
    background:linear-gradient(135deg, #ff1900, #d10000);
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
}

.btn-ver{
    margin-top:12px;
    padding:10px;
    width:100%;
    border:none;
    border-radius:50px;
    background:black;
    color:white;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
}

.btn-comprar:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 12px rgba(0,0,0,0.3);
}
.btn-ver:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 12px rgba(0,0,0,0.3);
}

.producto{
    transition: all 0.3s ease;
}

/*________________________________________________________________*/
/*_________________________________PRPODUCTO______________________*/
/*________________________________________________________________*/

/* Configuración General del Hero */
.hed {
    width: 100%;
    height: 15vh;
    background-color: black;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-direction: column;
    color: #fff;
    display: grid;
    grid-template-rows: 100px 1fr;

}

.conpro {
    display: flex;
    flex-direction: row;      /* Horizontal por defecto */
    justify-content: center;  /* Centra horizontal */
    align-items: center;      /* Centra vertical */
    gap: 20px;                /* Espacio entre los recuadros */

    width: 100%;
    min-height: 70vh;
    background-color: var(--color-white);
    margin: 0;
}


.contit{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
    margin: 0; 
}

/*catalogo box original esta en product.php*/

.catalogo-box2 {
    width: 40vw;              
    aspect-ratio: 1 / 1;  
    background-color: var(--color-white);
}
.catalogo-box3 {
    width: 100vw;              
    background-color: var(--color-white);
    border-top: solid 2px #000000;        
}
.boxta {
    width: 95vw;              
    height: auto; 
    background-color: var(--color-white);
    margin: 2vw;
}

@media (max-width: 768px) {
    .conpro {
        flex-direction: column;
    }
    .catalogo-box{
        width: 80vw;
    }
    .catalogo-box2{
        width: 91vw;
    }
}

.tabla-simple {
    font-family: 'Montserrat', sans-serif; /* Fuente elegante */
    font-size: 13px;                       /* Tamaño pequeño */
    letter-spacing: 0.5px;                 /* Más aire entre letras */
    
    border-collapse: collapse;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    color: #333;                           /* Color suave para el texto */
}

.tabla-simple td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-dark-white);         /* Línea sutil para separar filas */
}

.tabla-simple th {
    font-weight: 600;                      /* Encabezados un poco más fuertes */
    text-align: left;
    padding: 12px;
    background-color: #f9f9f9;
}

/* Opción B: Estilo Minimalista Moderno */
.descripcion {
    font-family: 'Lato', sans-serif;
    font-weight: 300;          /* Letra delgada (fina) */
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

.contenedor-imagenes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.catalogo-boxZ {
    width: 40vw;
    max-width: 350px;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .catalogo-boxZ{
        width: 90vw;
        max-width: 90vw;
    }
    .descripcion{
        font-size: 15px;
    }
}

.separador{
  width: 100vw;
  background-color: #000000;
  height: 8vh;
}
