/* Estilos para la sección Breakfast Box - Formato limpio y profesional */
.breakfast-box-section {
    padding: 4rem 0;
    background: #fff;
    margin-top: 70px;
}

.breakfast-box-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header del proyecto */
.project-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    position: relative;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: 0;
}

.category-indicator a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #17ba6d;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.category-indicator a:hover {
    background: rgba(23, 186, 109, 0.1);
    transform: translateX(-3px);
}

.category-indicator a:hover .arrow-icon {
    transform: translateX(-2px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #17ba6d;
}

.category-indicator span {
    color: #17ba6d;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.project-title {
    color: #000;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Línea divisoria */
.divider-line {
    height: 1px;
    background: #000;
    margin-bottom: 3rem;
    transform: scaleX(0);
    transform-origin: left;
    animation: expandLine 1s ease-out 0.6s forwards;
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}

/* Contenido del proyecto */
.project-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.info-row {
    display: contents;
}

.content-section {
    position: relative;
}

.section-label {
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 1.5rem 0;
    text-transform: none;
}

.section-text {
    color: #222;
    line-height: 1.6;
}

.section-text p {
    margin: 0 0 1.2rem 0;
    font-size: 0.95rem;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    color: #222;
}

.section-text p:last-child {
    margin-bottom: 0;
}

/* Imagen del proyecto */
.project-image-container {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-image:hover {
    transform: scale(1.01);
}

/* Responsive Design - Corregido */
@media screen and (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-title {
        font-size: 1.8rem;
    }

    /* Resetear el display: contents para que funcione en mobile */
    .info-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    .breakfast-box-section {
        padding: 3rem 0;
        margin-top: 60px;
    }

    .breakfast-box-section .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
        justify-content: flex-start;
    }

    .category-indicator {
        position: static;
        order: -1;
        width: 100%;
    }

    .project-title {
        font-size: 1.6rem;
        order: 1;
        text-align: left;
        width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Arreglar el grid en mobile - cambiar a layout vertical */
    .info-row {
        display: block;
        grid-column: unset;
    }

    .info-row .content-section {
        margin-bottom: 2rem;
    }

    .info-row .content-section:last-child {
        margin-bottom: 0;
    }

    .divider-line {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .breakfast-box-section {
        padding: 2rem 0;
        margin-top: 50px;
    }

    .breakfast-box-section .container {
        padding: 0 0.75rem;
    }

    .project-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .content-grid {
        gap: 1.5rem;
    }

    .section-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .section-label {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .category-indicator span {
        font-size: 1rem;
    }

    .arrow-icon {
        width: 18px;
        height: 18px;
    }

    .info-row .content-section {
        margin-bottom: 1.5rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Asegurar que el viewport meta tag esté configurado */
@media screen and (max-width: 320px) {
    .breakfast-box-section .container {
        padding: 0 0.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .section-text p {
        font-size: 0.85rem;
    }
}