/* assets/css/accessories/grid-cards.css */

.featured-grid-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.featured-grid-section__container {
    width: 100%;
    max-width: 1600px;
}

/* Acá aplicamos CSS Grid para el layout principal */
.featured-grid-section__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas exactas */
    gap: 1.5rem;
}

.featured-card {
    display: block; /* Quitamos flex para usar posicionamiento absoluto */
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    height: 520px; 
    transition: transform 0.3s ease;
    position: relative; /* Crucial para contener la imagen absoluta */
}

.featured-card:hover {
    transform: scale(1.015);
}

/* 1. El texto flota por encima de la imagen */
.featured-card__content {
    position: relative;
    z-index: 2; /* Se asegura de estar en la capa superior */
    padding: 3rem 3rem 0; 
}

.featured-card__title {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.featured-card__subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

/* Contenedor de la imagen que empuja hacia abajo */
.featured-card__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se queda en la capa inferior, por detrás del texto */
}

.featured-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre todo el área sin deformarse */
    object-position: center; /* Mantiene el producto centrado al recortar */
    display: block;
}

/* --- Modificadores de Tema (Themes) --- */

.featured-card--light {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #eaeaea; /* Borde sutil como en el diseño */
}

.featured-card--blue {
    background-color: #eaf2f8; /* Tono celeste del Macbook */
    color: #000000;
}

.featured-card--dark {
    background-color: #000000;
    color: #ffffff;
}

/* En el responsive, ajustamos la altura fija para que no queden tan largas en móvil */
@media (max-width: 1024px) {
    .featured-grid-section__wrapper {
        grid-template-columns: 1fr;
    }
    .featured-card {
        height: 480px;
    }
    .featured-card__content {
        padding: 2.5rem 2.5rem 0;
    }
}

@media (max-width: 768px) {
    .featured-card__title {
        font-size: 1.8rem;
    }
    .featured-card__content {
        padding: 2rem 2rem 0;
    }
}