/* ================================
   MÓDULO: CATEGORIES
   Estilos exclusivos de categorías
   ================================ */

/* Reset específico del módulo */
.categories,
.categories * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container principal */
.categories {
    width: 100%;
    padding: 5rem 0;
    background: #FAF8F5;
}

.categories__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Título de la sección */
.categories__title {
    font-family: 'Georgia', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #3E2723;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* Descripción */
.categories__description {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    color: #6B5B52;
    text-align: center;
    margin-bottom: 3.5rem;
    font-style: italic;
}

/* Grid de categorías */
.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* ================================
   CATEGORY CARD
   ================================ */

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.08);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(62, 39, 35, 0.15);
}

/* Wrapper de imagen con borde de color */
.category-card__image-wrapper {
    padding: 1.5rem 1.5rem 0 1.5rem;
    background: #fff;
}

.category-card__image {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background-image: url('../images/panes.jpg');
    background-size: cover;
    background-position: center;
    border: 4px solid #A67B5B; /* Mocha Mousse */
    transition: all 0.4s ease;
}

/* Imagen categoría Pasteles */
.category-card__image--pasteles {
    background-image: url('../images/pasteles.jpg');
    border-color: #E07856; /* Terracota */
}

/* Imagen categoría Pedidos */
.category-card__image--pedido {
    background-image: url('../images/pedidos.jpg');
    border-color: #91A68A; /* Verde oliva */
}

/* Efecto hover en imagen */
.category-card:hover .category-card__image {
    transform: scale(1.05);
    border-width: 5px;
}

/* Overlay transparente en hover */
.category-card__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0);
    transition: all 0.4s ease;
}

.category-card:hover .category-card__image::before {
    background: rgba(62, 39, 35, 0.1);
}

/* Contenido de la card */
.category-card__content {
    padding: 2rem 1.5rem;
    text-align: center;
}

/* Título de la categoría */
.category-card__title {
    font-family: 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #3E2723;
    margin-bottom: 0.8rem;
    letter-spacing: -0.3px;
}

/* Texto descriptivo */
.category-card__text {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    color: #6B5B52;
    line-height: 1.6;
    margin-bottom: 1.3rem;
}

/* Link "Ver más" */
.category-card__link {
    display: inline-block;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #A67B5B;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.category-card__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #A67B5B;
    transition: all 0.3s ease;
}

.category-card__link:hover {
    color: #3E2723;
}

.category-card__link:hover::after {
    background: #E07856;
    width: 110%;
}

/* ================================
   RESPONSIVE: TABLET
   ================================ */
@media screen and (max-width: 968px) {
    .categories {
        padding: 4rem 0;
    }

    .categories__title {
        font-size: 2.5rem;
    }

    .categories__description {
        font-size: 1rem;
    }

    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .category-card__image {
        height: 250px;
    }
}

/* ================================
   RESPONSIVE: MÓVIL
   ================================ */
@media screen and (max-width: 768px) {
    .categories {
        padding: 3.5rem 0;
    }

    .categories__container {
        padding: 0 1.5rem;
    }

    .categories__title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .categories__description {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .categories__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-card__image {
        height: 280px;
    }

    .category-card__title {
        font-size: 1.5rem;
    }

    .category-card__content {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .categories {
        padding: 3rem 0;
    }

    .categories__container {
        padding: 0 1rem;
    }

    .categories__title {
        font-size: 1.8rem;
    }

    .categories__description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .category-card__image-wrapper {
        padding: 1rem 1rem 0 1rem;
    }

    .category-card__image {
        height: 240px;
        border-width: 3px;
    }

    .category-card__title {
        font-size: 1.4rem;
    }

    .category-card__text {
        font-size: 0.9rem;
    }

    .category-card__content {
        padding: 1.3rem 1rem;
    }
}