/* =========================
   INDEX.CSS
   Estilos EXCLUSIVOS de la página de inicio (index.html)
   Requiere que common.css esté cargado antes que este archivo.
========================= */

/* HERO */

.hero {
    width: 100%;
    aspect-ratio: 1810 / 527;
    margin-top: 90px;

    background-image: url("assets/x.jfif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

.hero-content {
    position: absolute;
    left: 18%;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content h1 {
    margin: 0 0 24px;

    font-family: Georgia, serif;
    font-size: clamp(38px, 4vw, 64px);
    font-weight: 300;
    line-height: 1.05;

    color: #eee5d2;
}

.hero-button {
    display: inline-block;

    padding: 12px 20px;

    background: #eee5d2;
    color: #5f563f;

    font-family: Montserrat, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;

    text-decoration: none;
    border-radius: 2px;
}

/* PRODUCTOS DESTACADOS (home) */

.products {
    width: 100%;
    padding: 30px 12%;
    background: #111;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.products-header h2 {
    margin: 0;

    font-family: Montserrat, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;

    color: #eee5d2;
}

.products-header a {
    font-family: Montserrat, sans-serif;
    font-size: 9px;
    color: #c9ad76;
    text-decoration: none;
}

.products-content {
    display: flex;
    align-items: stretch;
    gap: 18px;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;

    width: 50%;
}

.product-card {
    height: 150px;

    background: #111;
    border: 1px solid #292929;
    border-radius: 6px;

    padding: 6px;

    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 105px;

    object-fit: cover;
    display: block;
}

.product-card h3 {
    margin: 6px 0 2px;

    font-family: Montserrat, sans-serif;
    font-size: 9px;
    font-weight: 400;

    color: #eee5d2;
    text-align: center;
}

.product-card p {
    margin: 0;

    font-family: Montserrat, sans-serif;
    font-size: 8px;

    color: #aaa398;
    text-align: center;
}

/* NUESTRA ESENCIA */

.essence {
    width: 50%;
    height: 150px;

    display: flex;

    border: 1px solid #292929;
    border-radius: 6px;

    overflow: hidden;
}

.essence-image {
    width: 43%;
    height: 100%;

    background-image: url("assets/esencia.jfif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.essence-text {
    width: 57%;
    padding: 15px 18px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #111;
}

.essence-text span {
    margin-bottom: 6px;

    font-family: Montserrat, sans-serif;
    font-size: 8px;
    letter-spacing: 1px;

    color: #c9ad76;
}

.essence-text h2 {
    margin: 0 0 7px;

    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;

    color: #eee5d2;
}

.essence-text p {
    margin: 0 0 8px;

    font-family: Montserrat, sans-serif;
    font-size: 8px;
    line-height: 1.45;

    color: #aaa398;
}

.essence-text a {
    font-family: Montserrat, sans-serif;
    font-size: 8px;

    color: #c9ad76;
    text-decoration: none;
}

/* BENEFICIOS */

.benefits {
    width: 100%;
    padding: 28px 12%;
    background: #111;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
}

.benefit {
    min-height: 75px;
    text-align: center;
    padding: 0 20px;

    border-right: 1px solid #292929;
}

.benefit:last-child {
    border-right: none;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #c9ad76;
}

.benefit-icon img {
    width: 28px;
    height: 28px;
    display: block;
    filter: invert(75%) sepia(25%) saturate(600%) hue-rotate(5deg) brightness(90%);
}

.benefit h3 {
    margin: 0 0 5px;

    font-family: Montserrat, sans-serif;
    font-size: 10px;
    font-weight: 600;

    color: #eee5d2;
}

.benefit p {
    margin: 0;

    font-family: Montserrat, sans-serif;
    font-size: 8px;

    color: #aaa398;
}

/* COLECCIONES */

.collections {
    width: 100%;
    height: 210px;

    background-image: url("assets/colecciones1.jfif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

.collections-content {
    position: absolute;
    left: 12%;
    top: 50%;
    transform: translateY(-50%);
}

.collections-content>span {
    display: block;
    margin-bottom: 7px;

    font-family: Montserrat, sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 1.4px;
    color: #c9ad76;
}

.collections-content h2 {
    margin: 0 0 8px;

    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.05;
    color: #eee5d2;
}

.collections-content p {
    margin: 0 0 12px;

    font-family: Montserrat, sans-serif;
    font-size: 8px;
    line-height: 1.5;
    color: #aaa398;
}

.collections-content a {
    display: inline-block;

    padding: 9px 14px;

    background: #eee5d2;
    color: #5f563f;

    font-family: Montserrat, sans-serif;
    font-size: 8px;
    font-weight: 400;
    text-decoration: none;

    border-radius: 2px;
}

/* =========================
   RESPONSIVE — solo estilos de la HOME
   (el menú móvil y la navbar en móvil ya viven en common.css)
========================= */

@media (max-width: 768px) {

    /* PRODUCTOS — móvil */

    .products {
        padding: 22px 50px;
    }

    .products-content {
        display: block;
    }

    .products-list {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        height: 125px;
    }

    .product-card img {
        width: 100%;
        height: 88px;
        object-fit: contain;
        display: block;
        transform: scale(1.07);
    }

    .essence {
        display: none;
    }

    /* BENEFICIOS — móvil */

    .benefits {
        width: 100%;
        padding: 0 18px;
        background: #1a1a1a;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        margin: 0 0 10px;
    }

    .benefit {
        min-height: 65px;
        padding: 6px 8px;
        text-align: center;
        position: relative;

        border: none;
    }

    .benefit:nth-child(1)::after,
    .benefit:nth-child(2)::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 18px;
        right: 18px;
        height: 1px;
        background: #292929;
    }

    .benefit:nth-child(1)::before,
    .benefit:nth-child(3)::before {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 10px;
        right: 0;
        width: 1px;
        background: #292929;
    }

    .benefit-icon {
        width: 22px;
        height: 22px;
        margin: 0 auto 4px;
    }

    .benefit-icon img {
        width: 22px;
        height: 22px;
    }

    .benefit h3 {
        margin: 0 0 3px;
        font-size: 8px;
    }

    .benefit p {
        margin: 0;
        font-size: 6px;
    }

    /* COLECCIONES — móvil */

    .collections {
        height: 160px;
        background-position: center;
    }

    .collections-content {
        left: 18px;
        top: 50%;
    }

    .collections-content>span {
        font-size: 7px;
        margin-bottom: 5px;
    }

    .collections-content h2 {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .collections-content p {
        max-width: 210px;
        font-size: 7px;
        margin-bottom: 9px;
    }

    .collections-content a {
        padding: 7px 11px;
        font-size: 7px;
    }

    /* HERO — móvil */

    .hero {
        margin-top: 72px;
        height: 235px;
        aspect-ratio: auto;

        background-size: cover;
        background-position: 70% center;
    }

    .hero-content {
        left: 10%;
        top: 55%;
        transform: translateY(-50%);
        width: 48%;
    }

    .hero-content h1 {
        margin: 0 0 14px;
        font-size: 0;
        line-height: 1.08;
        width: auto;
    }

    .hero-content h1::after {
        content: "Una esencia\A Que habla\A Por ti";
        white-space: pre;
        font-family: Georgia, serif;
        font-size: 28px;
        font-weight: 300;
        line-height: 1.08;
    }

    .hero-button {
        padding: 9px 13px;
        font-size: 8px;
    }

    /* CITA DEL MENÚ MÓVIL — solo en home */

    .mobile-nav-quote {
        margin-top: auto;
        height: 130px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0 16px 20px;
        box-sizing: border-box;
        background-image: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(8, 8, 8, 0.85) 55%, #080808 100%), url("assets/x.jfif");
        background-size: cover;
        background-position: center;
    }

    .mobile-nav-quote p {
        margin: 0;
        text-align: center;
        font-family: Georgia, serif;
        font-style: italic;
        font-size: 12px;
        line-height: 1.5;
        color: #eee5d2;
    }

}