/* Estilos Generales - Estética Mid-Century y Calidez Escandinava */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fafaf9; /* Fondo crema/piedra muy cálido y sofisticado */
    color: #44403c; /* Texto marrón piedra oscuro para una lectura suave */
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    line-height: 1.6;
}

header {
    background-color: rgba(250, 250, 249, 0.9);
    border-bottom: 1px solid #e7e5e4;
    padding: 1.3rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #292524; /* Marrón nogal profundo */
}

/* Botón solicitado con el texto exacto */
.btn-sucursal {
    background-color: #292524; /* Marrón nogal */
    color: #fafaf9;
    padding: 0.7rem 1.5rem;
    border-radius: 4px; /* Bordes sutiles y elegantes */
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-sucursal:hover {
    background-color: #15803d; /* Cambia a verde oliva en hover */
    transform: translateY(-1px);
}

/* Sección Hero / Portada */
.hero {
    background: linear-gradient(rgba(250, 250, 249, 0.85), rgba(250, 250, 249, 0.98)), 
                url('https://images.unsplash.com/photo-1507473885765-e6ed057f782c?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 9rem 1.5rem;
    border-bottom: 1px solid #e7e5e4;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1c1917;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: #15803d; /* Verde oliva acento */
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}

/* Sección Historia */
.historia {
    max-width: 800px;
    margin: 5rem auto;
    padding: 3.5rem;
    background-color: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(41, 37, 36, 0.02);
}

.historia h2 {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #1c1917;
    letter-spacing: -0.3px;
}

.historia p {
    color: #57534e;
    font-size: 0.95rem;
    text-align: justify;
    line-height: 1.75;
}

/* Sección Catálogo */
.catalogo {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.catalogo h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: #1c1917;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 3rem;
}

.producto-card {
    background-color: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
    border-color: #15803d;
    box-shadow: 0 12px 30px rgba(21, 128, 61, 0.04);
}

.producto-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid #e7e5e4;
}

.producto-info {
    padding: 1.8rem;
}

.producto-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1c1917;
    margin-bottom: 0.5rem;
}

.producto-desc {
    font-size: 0.85rem;
    color: #78716c;
    margin-bottom: 1.8rem;
    height: 60px;
    overflow: hidden;
}

.producto-precio {
    font-size: 1.25rem;
    font-weight: 700;
    color: #292524;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f4;
    padding-top: 1rem;
}

/* Botón Especificar */
.btn-comprar {
    background-color: #f5f5f4;
    color: #292524;
    padding: 0.5rem 1.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comprar:hover {
    background-color: #15803d;
    color: #ffffff;
}

/* Footer */
footer {
    background-color: #1c1917;
    color: #a8a29e;
    text-align: center;
    padding: 3.5rem;
    margin-top: 8rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   VENTANA MODAL DEL PORTAL DE ADQUISICIONES / VOLUMEN B2B
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(41, 37, 36, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(41, 37, 36, 0.15);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.8rem;
    font-size: 1.6rem;
    color: #a8a29e;
    cursor: pointer;
}

.modal-close:hover {
    color: #15803d;
}

.modal-header {
    text-align: left;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #1c1917;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.modal-header p {
    color: #78716c;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #292524;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d6d3d1;
    background-color: #fafaf9;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #1c1917;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #15803d;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.btn-submit {
    width: 100%;
    background-color: #292524;
    color: #ffffff;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #15803d;
}