/* ===== TIPOGRAFÍAS ===== */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #fdf8f3;
    color: #3a2c2c;
    font-size: 1rem;
    line-height: 1.5;
}

h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #3a2c2c;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
.header {
    background: #fff;
    border-bottom: 0.125rem solid #c5a572;
    display: flex;
    align-items: center;
    height: 5rem;
    padding: 0 3rem;
    position: relative;
    z-index: 1000;
    box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.05);
}

.header .logo {
    position: absolute;
    top: 1.5rem;
    left: 4rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.header .logo img {
    max-height: 9rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header .logo img:hover {
    transform: scale(1.05);
}

.navbar {
    margin-left: auto;
    display: flex;
    gap: 2rem;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar a {
    text-decoration: none;
    color: #3a2c2c;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 0.125rem;
    bottom: -0.25rem;
    left: 0;
    background: #c5a572;
    transition: width 0.3s ease-in-out;
}

.navbar a:hover::after {
    width: 100%;
}


/* ===== HERO ===== */
.hero {
    height: 60vh;
    background: url('../IMG/img-background.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(44,44,44,0.45);
}

.hero-texto {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.hero-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-texto p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-primario {
    background-color: #e6b8a2;
    color: #2c2c2c;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primario:hover {
    background-color: #c89679;
    color: #fff;
}

/* ===== PRODUCTOS ===== */
.productos-destacados {
    padding: 3rem 1rem;
    text-align: center;
}

.reja-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.producto {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.3rem 1rem rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.producto:hover img {
    transform: scale(1.05);
}

.producto h3 {
    margin: 0.75rem 1rem;
    font-size: 1.2rem;
}

.precio {
    color: #b86b59;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0.5rem 1rem;
}

.producto .descripcion {
    font-size: 0.9rem;
    color: #777;
    margin: 0.5rem 1rem 1rem;
    line-height: 1.4;
}

.btn-agregar {
    background: #e6b8a2;
    color: #2c2c2c;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 1rem auto 0;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-agregar:hover {
    background: #c89679;
    color: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background: #3a2c2c;
    color: #fdf8f3;
    text-align: center;
    padding: 2rem 1rem;
}

.footer a {
    color: #e6b8a2;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    color: #fff;
}

.footer .redes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer .redes .icono-red {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s, filter 0.3s;
}

.footer .redes .icono-red:hover {
    transform: scale(1.2);
    filter: invert(70%) sepia(30%) saturate(300%) hue-rotate(330deg);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    .hero-texto h2 {
        font-size: 2rem;
    }

    .hero-texto p {
        font-size: 1rem;
    }

    .producto img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero {
        height: 50vh;
    }

    .producto img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .hero-texto h2 {
        font-size: 1.5rem;
    }

    .hero-texto p {
        font-size: 0.9rem;
    }

    .reja-productos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .producto h3 {
        font-size: 1rem;
    }

    .precio {
        font-size: 1rem;
    }

    .producto .descripcion {
        font-size: 0.85rem;
        margin: 0.5rem 0.75rem;
    }

    .btn-agregar, .btn-primario {
        width: 100%;
        text-align: center;
    }
}
