/* ==========================================
   SECTION: Dotaciones Corporativas (Star)
   ========================================== */

.dotaciones {
    background: var(--warg-bg-gray);
    padding: 100px 20px;
    overflow: hidden;
}

.dotaciones-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* ------------------------------------------
   Left Column: Text + CTA
   ------------------------------------------ */
.dotaciones-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dotaciones-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warg-blue-vibrant);
}

.dotaciones-label svg {
    width: 16px;
    height: 16px;
    fill: var(--warg-blue-vibrant);
}

.dotaciones-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: var(--warg-text-light);
    margin: 0;
}

.dotaciones-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--warg-text-body);
    margin: 0;
}

/* Checklist */
.dotaciones-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dotaciones-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--warg-text-light);
}

.check-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--warg-blue-vibrant);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-icon svg {
    width: 12px;
    height: 12px;
    stroke: #FFFFFF;
    stroke-width: 3;
    fill: none;
}

/* WhatsApp CTA */
.dotaciones-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: var(--radius-btn, 50px);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    align-self: flex-start;
}

.dotaciones-cta:hover {
    background: #1EBE5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.dotaciones-cta svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

.dotaciones-cta-hint {
    font-size: 0.8rem;
    color: var(--warg-text-body);
    margin: 0;
}

.dotaciones-cta-hint svg {
    width: 14px;
    height: 14px;
    fill: #25D366;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ------------------------------------------
   Right Column: Image Mosaic
   ------------------------------------------ */
.dotaciones-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.mosaic-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

/* Overlay on hover */
.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 45, 90, 0.75), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-overlay span {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ------------------------------------------
   Scroll Animations
   ------------------------------------------ */
.dotaciones-text,
.dotaciones-mosaic {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dotaciones-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.dotaciones-mosaic.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* ------------------------------------------
   Responsive
   ------------------------------------------ */
@media (max-width: 968px) {
    .dotaciones-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .dotaciones-mosaic {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dotaciones {
        padding: 56px 20px;
    }

    .dotaciones-inner {
        gap: 36px;
    }

    .dotaciones-title {
        font-size: 1.8rem;
    }

    .dotaciones-desc {
        font-size: 0.95rem;
    }

    .dotaciones-list li {
        font-size: 0.88rem;
    }

    .dotaciones-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        min-height: 44px;
    }

    .dotaciones-mosaic {
        max-width: 100%;
    }

    .mosaic-item {
        border-radius: 12px;
    }

    .mosaic-overlay span {
        font-size: 0.75rem;
    }

    .dotaciones-text {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .dotaciones {
        padding: 40px 16px;
    }

    .dotaciones-inner {
        gap: 28px;
    }

    .dotaciones-title {
        font-size: 1.5rem;
    }

    .dotaciones-desc {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .dotaciones-label {
        font-size: 0.7rem;
    }

    .dotaciones-list {
        gap: 10px;
    }

    .dotaciones-list li {
        font-size: 0.85rem;
        gap: 10px;
    }

    .check-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .check-icon svg {
        width: 10px;
        height: 10px;
    }

    .dotaciones-mosaic {
        gap: 8px;
    }

    .mosaic-item {
        border-radius: 8px;
    }

    .mosaic-overlay {
        padding: 10px;
    }

    .mosaic-overlay span {
        font-size: 0.7rem;
    }

    .dotaciones-cta {
        padding: 14px 20px;
        font-size: 0.88rem;
    }

    .dotaciones-cta-hint {
        font-size: 0.75rem;
        text-align: center;
    }
}
