.essences{
    padding:80px 8%;
    background:#fff;
}

.essences-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 46px;
    font-weight: 700;
    text-align: center; 
    text-decoration: underline;
    text-decoration-color: #e3ab46;
    margin-bottom: 50px;
    color: #333;
    display: block;
}

.essences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 200px;
    gap: 16px;
    grid-auto-flow: dense;
}

.essence-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.35s ease;
}

.essence-item.tall {
    grid-row: span 2; 
}

.essence-item.wide {
    grid-column: span 2;
}

.essence-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.45s ease;
}

.essence-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    transition: opacity 0.35s ease;
}

.essence-overlay span {
    font-size: 18px;
    font-weight: 600;
}

.essence-overlay small {
    font-size: 14px;
    font-weight: 300;
}

.essence-item:hover img {
    filter: brightness(1);
    transform: scale(1.05);
}

.essence-item:hover .essence-overlay {
    opacity: 0;
}

.plus-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e3ab46;
    color: #e3ab46;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    z-index: 5;
}

.plus-btn:hover {
    background: #000;
    color: #e3ab46;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(227,171,70,0.6);
}

.essence-item:active {
    transform: scale(0.97);
}

/* Tablets: hasta 768px */
@media (max-width: 768px) {
    .essences {
        padding: 60px 5%;
        margin-top: 35px;
    }

    .essences-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .essences-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 14px;
    }

    .essence-item.tall {
        grid-row: span 2;
    }

    .essence-item.wide {
        grid-column: span 2;
    }

    .essence-overlay span {
        font-size: 16px;
    }

    .essence-overlay small {
        font-size: 12px;
    }

    .plus-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}

/* Móviles: hasta 480px */
@media (max-width: 480px) {
    .essences {
        padding: 50px 3%;
        margin-top: 55px;
    }

    .essences-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .essences-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 160px;
        gap: 12px;
    }

    .essence-item.tall,
    .essence-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .essence-overlay span {
        font-size: 14px;
    }

    .essence-overlay small {
        font-size: 11px;
    }

    .plus-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }
}