/* ===== TIPOGRAFÍAS ===== */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #fdf8f3; /* beige cálido */
    color: #3a2c2c;
    font-size: 1rem; /* base */
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #3a2c2c;
}

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: 90vh;
    background: url('../IMG/img-background.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-bottom: 0.375rem solid #c5a572;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(44, 44, 44, 0.45);
}

.hero-texto {
    position: relative;
    z-index: 1;
}

.hero-texto h1 {
    font-size: 3.2rem;
    margin-bottom: 0.9375rem;
    color: #f7f3ed;
}

.hero-texto p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #eaeaea;
}

.seo-text {
    position: absolute;  /* Lo sacamos del flujo visual */
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}


.btn-primario {
    background-color: #c5a572;
    color: #2c2c2c;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primario:hover {
    background-color: #8c6b4f;
    color: #fff;
}

/* ===== PRODUCTO DESTACADO - DÍA DE LA MADRE ===== */
.producto-dia-madre {
    background: linear-gradient(135deg, #fff6f7, #fdf1ef);
    border: 2px solid #e7b1b8;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin: 4rem auto;
    max-width: 1100px;
    box-shadow: 0 0.5rem 1.5rem rgba(224, 153, 160, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-dia-madre:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.75rem 2rem rgba(224, 153, 160, 0.25);
}

.texto-dia-madre {
    flex: 1 1 450px;
}

.texto-dia-madre h2 {
    font-family: 'Playfair Display', serif;
    color: #b94a61;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.texto-dia-madre h3 {
    font-family: 'Playfair Display', serif;
    color: #3a2c2c;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.texto-dia-madre p {
    font-family: 'Open Sans', sans-serif;
    color: #5c4a4a;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-dia-madre {
    background-color: #b94a61;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0.3rem 0.6rem rgba(185, 74, 97, 0.25);
}

.btn-dia-madre:hover {
    background-color: #92374f;
    box-shadow: 0 0.4rem 0.9rem rgba(185, 74, 97, 0.3);
}

.imagen-dia-madre {
    flex: 1 1 300px;
    text-align: center;
}

.imagen-dia-madre img {
    width: 100%;
    height: 300px; /* altura uniforme */
    object-fit: cover; /* mantiene proporciones sin deformar */
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.producto-dia-madre:hover .imagen-dia-madre img {
    transform: scale(1.03);
}

/* ===== PRODUCTOS ===== */
.productos-destacados {
    padding: 4rem 1.25rem;
    text-align: center;
}

.reja-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.producto {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.3125rem 1rem rgba(0,0,0,0.1);
    transition: transform 0.3s;
    padding-bottom: 1rem;
}

.producto:hover {
    transform: translateY(-0.5rem);
}

.producto img {
    width: 100%;
    height: 300px; /* altura uniforme */
    object-fit: cover;
    transition: transform 0.4s;
}

.producto:hover img {
    transform: scale(1.05);
}

.producto h3 {
    margin: 1rem;
    font-size: 1.2rem;
}

.precio {
    color: #a35b45;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.producto .descripcion {
    font-size: 0.9rem;
    color: #777;
    margin: 0.5rem 1rem;
    line-height: 1.4;
}

.producto .etiquetas {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.producto .etiquetas img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

/* BOTÓN AGREGAR / PEDIR */
.btn-agregar {
    background: #c5a572;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    margin-top: 0.75rem;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-agregar:hover {
    background: #8c6b4f;
}

/* ===== FOOTER ===== */
.footer {
    background: #3a2c2c;
    color: #fdf8f3;
    text-align: center;
    padding: 2rem 1.25rem;
    margin-top: 3rem;
}

.footer a {
    color: #c5a572;
    text-decoration: none;
    margin: 0 0.625rem;
}

.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; 
    display: block;
    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(20deg);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    .header {
        padding: 0 2rem;
        height: auto;
        flex-wrap: wrap;
    }

    .header .logo {
        top: 1rem;
        left: 2rem;
    }

    .navbar {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .navbar ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero-texto h1 {
        font-size: 2.5rem;
    }

    .hero-texto p {
        font-size: 1.1rem;
    }

    .producto img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        height: auto;
    }

    .header .logo {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 0.5rem;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero {
        height: 60vh;
        padding: 2rem 1rem;
    }

    .hero-texto h1 {
        font-size: 2rem;
    }

    .hero-texto p {
        font-size: 1rem;
    }

    .btn-primario {
        width: 100%;
        text-align: center;
    }

    .producto img {
        height: 180px;
    }

    .producto-dia-madre {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .texto-dia-madre h2 {
        font-size: 1.8rem;
    }

    .texto-dia-madre h3 {
        font-size: 1.3rem;
    }

    .texto-dia-madre p {
        font-size: 1rem;
    }

    .imagen-dia-madre img {
        max-width: 280px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-texto h1 {
        font-size: 1.6rem;
    }

    .hero-texto p {
        font-size: 0.95rem;
    }

    .reja-productos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .producto h3 {
        font-size: 1rem;
    }

    .precio {
        font-size: 1.1rem;
    }

    .producto .descripcion {
        font-size: 0.85rem;
        margin: 0.5rem;
    }

    .btn-agregar {
        width: 100%;
        text-align: center;
    }

    .producto-dia-madre {
        padding: 2rem 1rem;
    }

    .texto-dia-madre h2 {
        font-size: 1.5rem;
    }

    .texto-dia-madre h3 {
        font-size: 1.2rem;
    }

    .btn-dia-madre {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .imagen-dia-madre img {
        max-width: 100%;
        height: auto;
    }
}
