/* =======================================================
   1. CONFIGURACIONES GENERALES
   ======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* Navegación */
nav {
    background-color: #2c3e50;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.btn-contacto-nav {
    background-color: #ff9800;
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

/* =======================================================
   2. SECCIÓN NOSOTROS (HISTORIA)
   ======================================================= */
#nosotros {
    padding: 80px 10%;
    background-color: #fff;
}

.nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

#nosotros h2 span {
    color: #ff9800;
}

.caja-experiencia {
    background-color: #2c3e50;
    color: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
}

/* =======================================================
   3. CATÁLOGO DE CHAPAS (AJUSTADO PARA QUE SE VEAN GRANDES)
   ======================================================= */
.productos-container {
    padding: 80px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.seccion-titulo {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Cartas más anchas */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.producto-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.producto-card:hover {
    transform: translateY(-10px);
}

/* LA IMAGEN DE LA CHAPA */
.producto-card img {
    width: 100%;
    height: 400px; /* ALTURA AUMENTADA */
    object-fit: contain; 
    background-color: #fff;
    margin-bottom: 20px;
    padding: 10px;
}

.etiqueta-naranja {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff9800;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 10;
}

.precio-lista {
    color: #888;
    text-decoration: line-through;
    font-size: 1rem;
}

.precio-oferta {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.precio-oferta span {
    display: block;
    font-size: 14px;
    color: #ff9800;
}

.btn-comprar {
    display: block;
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-comprar:hover {
    background: #ff9800;
}

/* =======================================================
   4. SECCIÓN SERVICIOS
   ======================================================= */
#servicios {
    padding: 80px 20px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff9800;
    margin: 12px auto 0;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-item {
    flex: 1 1 300px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn-servicio-ws {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* =======================================================
   5. GALERÍA DE TRABAJOS (SLIDER)
   ======================================================= */
#galeria-trabajos {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.trabajo {
    flex: 0 0 100%;
}

.trabajo img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.trabajo h3 {
    padding: 15px;
    background: #2c3e50;
    color: white;
}

/* =======================================================
   6. RESPONSIVE
   ======================================================= */
@media (max-width: 768px) {
    .nosotros-container { grid-template-columns: 1fr; }
    .productos-grid { grid-template-columns: 1fr; }
    .producto-card img { height: 400px; }
    .trabajo img { height: 250px; }
}