/* ============================================
   INNOMODEL - Estilos principales
   ============================================ */

/* CONFIGURACIÓN INDUSTRIAL */
:root {
    --negro-carbon: #1a1a1a;
    --gris-acero: #2d2d2d;
    --gris-plata: #e0e0e0;
    --rojo-senal: #b12222;
    --blanco-humo: #f5f5f5;
    --shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* BASE */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--blanco-humo);
    color: var(--negro-carbon);
    margin: 0;
    padding: 0;
}

/* HEADER */
header {
    background-color: var(--negro-carbon);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid var(--rojo-senal);
}

header h1 {
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   FORMULARIO DE CONSULTA
   ============================================ */
#formConsulta {
    display: none; /* Oculto por defecto */
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.input-consulta {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.textarea-consulta {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    box-sizing: border-box;
}

/* ============================================
   SECCIONES DE CATEGORÍA
   ============================================ */
.categoria-section {
    margin-bottom: 60px;
}

.categoria-titulo {
    font-size: 1.8rem;
    color: var(--gris-acero);
    border-left: 8px solid var(--rojo-senal);
    padding-left: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ============================================
   GRILLA DE PRODUCTOS
   ============================================ */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ============================================
   TARJETA DE PRODUCTO
   ============================================ */
.producto-box {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #ddd;
}

.producto-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: var(--rojo-senal);
}

/* IMAGEN DE PRODUCTO */
.img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #eee;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-box:hover img {
    transform: scale(1.1);
}

.producto-box h3 {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    background: white;
    color: var(--negro-carbon);
}

/* ============================================
   MODAL (VENTANA EMERGENTE)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 15px;
    max-width: 800px;
    width: 95%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    margin: auto;
}

/* RESPONSIVE MODAL */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        max-height: none;
    }

    .modal-img-side {
        max-height: 400px;
    }

    .modal-info-side {
        padding: 25px;
    }
}

/* LADO IMAGEN DEL MODAL */
.modal-img-side {
    flex: 1;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 100%;
}

.modal-img-side img#modalImg {
    width: 100%;
    height: auto;
    max-height: 70%;
    object-fit: contain;
}

/* MINIATURAS */
.thumbnails-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 15px;
    background-color: #111;
    width: 100%;
    box-sizing: border-box;
}

.thumb-img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #555;
    background-color: #333;
    transition: all 0.2s;
}

.thumb-img:hover {
    border-color: var(--rojo-senal);
    transform: scale(1.05);
}

/* LADO INFO DEL MODAL */
.modal-info-side {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* BOTÓN CERRAR */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

/* PRECIO */
.precio-tag {
    font-size: 2rem;
    color: var(--rojo-senal);
    font-weight: bold;
    margin: 20px 0;
}

/* BOTÓN CONSULTA */
.btn-consulta {
    background: var(--negro-carbon);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-consulta:hover {
    background: var(--rojo-senal);
}
