/* 
 * ESTILOS DE LA PAGINA DE CASOS DE EXITO (Refactored Minimal)
 * Hereda estilos de hero de init.css (page-hero compartido).
 */

/* Sobreescrituras especificas de casos */
.casos-container .cases-section {
    padding: var(--gap-section) 0px;
    padding-bottom: var(--gap-section);
}

.casos-container .case-card {
    margin-top: 0;
}

/* --- CASOS GRID SECTION (New Minimal Style) --- */
.casos-section {
    padding: var(--pad-lg) var(--pad-xs) var(--gap-section);
    max-width: 1200px;
    margin: 0 auto;
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columnas fijas en escritorio */
    gap: var(--pad-lg) var(--gap-md);
}

/* Container Query: TABLET (769px a 1024px) */
@container gbn-root (min-width: 769px) and (max-width: 1024px) {
    .casos-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columnas en tablets */
    }
}

/* Container Query: MOVIL */
@container gbn-root (max-width: 768px) {
    .casos-grid {
        grid-template-columns: 1fr;
        /* 1 Columna en movil */
        gap: 30px;
    }
}

/* Minimal Card */
.caso-minimal-card {
    /* No background, no shadow initially */
    background: transparent;
    transition: transform 0.3s ease;
}

.caso-minimal-card:hover {
    transform: translateY(-5px);
}

.caso-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Header: Title + Location */
.caso-minimal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4px;
    /* Slight indent to align with image curve visually */
}

.caso-minimal-title {
    font-family: var(--font-body, sans-serif) !important;
    font-size: var(--text-base) !important;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.caso-minimal-location {
    font-family: var(--font-body, sans-serif);
    font-size: var(--text-sm);
    color: #1a1a1a;
    /* Dark text as per image */
    font-weight: 500;
    text-align: right;
}

/* Image Wrapper */
.caso-minimal-image-wrap {
    width: 100%;
    padding-top: 75%;
    /* 4:3 Aspect Ratio approx */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.caso-minimal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.caso-minimal-card:hover .caso-minimal-image {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* --- QUOTE & CTA SECTIONS (Mantener existente) --- */
.quote-section {
    background-color: rgba(145, 150, 121);
    padding: 100px var(--pad-xs);
    text-align: center;
}

.quote-content {
    max-width: 1200px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 48px;
    display: block;
    opacity: 0.8;
}

.quote-icon svg {
    color: #f4f4f4;
    height: 64px;
    width: 64px;
}

.quote-text {
    font-family: var(--font-body) !important;
    font-size: var(--text-lg) !important;
    color: #f4f4f4 !important;
    line-height: 1.4;
    margin-bottom: var(--gap-md);
}

.quote-author {
    font-family: var(--font-body) !important;
    font-size: var(--text-base) !important;
    color: #f4f4f4b4 !important;
    letter-spacing: 1px;
    opacity: 0.9;
}

.casos-cta {
    text-align: center;
    padding: 128px 0;
    background-color: rgba(245, 245, 234);
}

.cta-title {
    font-family: var(--font-heading) !important;
    font-weight: normal !important;
    font-size: var(--text-hero) !important;
    margin-bottom: var(--pad-xs) !important;
    font-style: italic;
    color: #1a1a1a;
}

.cta-text {
    font-family: var(--font-body) !important;
    font-size: var(--text-base);
    color: #1d1d1d;
    margin-bottom: var(--pad-lg);
    max-width: 500px;
    margin: auto;
}

.btn-cta {
    display: inline-block;
    background-color: #9da876;
    color: #fff;
    padding: 5px var(--pad-xs);
    border-radius: 30px;
    margin-top: var(--gap-sm);
    text-decoration: none;
    border: 1px solid transparent;
    font-size: var(--text-base);
    transition: background 0.3s, transform 0.3s;
}

.btn-cta:hover {
    border: 1px solid #8c9669;
    background-color: transparent;
    color: #8c9669;
    transform: translateY(-2px);
}

/* Container Query: TABLET (769px a 1024px) */
@container gbn-root (min-width: 769px) and (max-width: 1024px) {
    .casos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .casos-section {
        padding: 40px 20px 60px;
    }
}

/* Container Query: MOVIL */
@container gbn-root (max-width: 768px) {
    /* Grid Stacking */
    .casos-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Hero Typography & Spacing */
    .casos-container .casos-hero {
        height: auto;
        min-height: 400px;
        padding: 80px 20px 60px;
        margin-bottom: 40px;
    }

    .casos-container .hero-title {
        font-size: 48px;
        margin-bottom: 24px;
    }

    .casos-container .hero-title .script-text {
        font-size: 56px;
    }

    .casos-container .hero-subtitle {
        font-size: 16px;
        line-height: 1.4;
    }

    /* Quote Section */
    .quote-section {
        padding: 60px 20px;
    }

    .quote-text {
        font-size: 22px !important;
        line-height: 1.4;
    }

    .quote-icon svg {
        width: 48px;
        height: 48px;
    }

    /* CTA Section */
    .casos-cta {
        padding: 60px 20px;
    }

    .cta-title {
        font-size: 40px !important;
        line-height: 1.1;
    }

    .cta-text {
        font-size: 16px;
        padding: 0 10px;
    }
}
