/* Estilos Generales - Estética Brutalista Siderúrgica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e2e8f0; /* Fondo gris concreto industrial */
    color: #0f172a; /* Texto negro hierro fundido */
    font-family: 'SF Mono', 'Courier New', Courier, monospace; /* Tipografía técnica */
    line-height: 1.6;
}

header {
    background-color: #0f172a; /* Bloque sólido oscuro */
    border-bottom: 4px solid #7c2d12; /* Borde grueso color óxido quemado */
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
}

/* Botón solicitado con el texto exacto - Diseño Robusto */
.btn-sucursal {
    background-color: #7c2d12; /* Acero corten / Óxido */
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 0px; /* Cero curvas, diseño brutalista rígido */
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #7c2d12;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px #000000; /* Sombra sólida bloqueada */
    transition: all 0.15s ease;
}

.btn-sucursal:hover {
    background-color: #9a3412;
    box-shadow: 2px 2px 0px #000000;
    transform: translate(2px, 2px);
}

/* Sección Hero Texturizada */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)), 
                url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    padding: 10rem 1.5rem;
    color: #ffffff;
    border-bottom: 4px solid #0f172a;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 700px;
}

/* Sección Manifiesto Industrial */
.manifiesto {
    max-width: 1300px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.contenedor-bloque {
    background-color: #ffffff;
    border: 3px solid #0f172a;
    padding: 4rem;
    box-shadow: 12px 12px 0px #7c2d12; /* Sombra lateral de gran volumen */
}

.contenedor-bloque h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.contenedor-bloque p {
    color: #334155;
    font-size: 1rem;
    text-align: justify;
}

/* Sección Catálogo Metálico */
.catalogo {
    max-width: 1300px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.catalogo h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4rem;
    color: #0f172a;
    border-left: 8px solid #7c2d12;
    padding-left: 1rem;
}

.grid-metales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.metal-card {
    background-color: #ffffff;
    border: 3px solid #0f172a;
    position: relative;
    box-shadow: 8px 8px 0px #0f172a;
    transition: all 0.2s ease;
}

.metal-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #7c2d12;
}

.metal-badge {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    position: absolute;
    top: -1.2rem;
    left: 1.5rem;
    border: 2px solid #ffffff;
}

.metal-info {
    padding: 3rem 2rem 2rem 2rem;
}

.metal-titulo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.metal-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 2rem;
    height: 75px;
    overflow: hidden;
}

.metal-precio {
    font-size: 1.4rem;
    font-weight: 900;
    color: #7c2d12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dashed #cbd5e1;
    padding-top: 1.5rem;
}

/* Botón Asignar Lote */
.btn-comprar {
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-comprar:hover {
    background-color: #7c2d12;
}

/* Footer Sólido */
footer {
    background-color: #0f172a;
    color: #64748b;
    padding: 4rem 2rem;
    margin-top: 10rem;
    border-top: 4px solid #7c2d12;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   VENTANA MODAL ESTILO PROTOCOLO DE EMBARQUE / MAYORISTA
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #ffffff;
    border: 4px solid #7c2d12;
    padding: 4rem;
    border-radius: 0px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 15px 15px 0px #000000;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    cursor: pointer;
}

.modal-close:hover {
    color: #7c2d12;
}

.modal-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.modal-header h2 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.modal-header p {
    color: #475569;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7c2d12;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 3px solid #0f172a;
    background-color: #f1f5f9;
    border-radius: 0px;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
}

.form-group input:focus {
    background-color: #ffffff;
    border-color: #7c2d12;
}

.btn-submit {
    width: 100%;
    background-color: #0f172a;
    color: #ffffff;
    padding: 1.2rem;
    border: none;
    border-radius: 0px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0px #7c2d12;
    transition: all 0.1s;
}

.btn-submit:hover {
    background-color: #7c2d12;
    box-shadow: 2px 2px 0px #0f172a;
}