/* ============================================
   FUNDE - Home Page Styles
   ============================================ */

/* ============================================
   SLOGAN SECTION
   ============================================ */
.section-slogan {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
}

.slogan-content {
    max-width: 900px;
    margin: 0 auto;
}

.slogan-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin: 0;
}

/* ============================================
   AREAS SECTION
   ============================================ */
.section-areas {
    background: var(--color-gray-50);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.area-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.area-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.area-card-link {
    display: block;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.area-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-icon img {
    width: 180px;
    height: auto;
    transition: transform var(--transition-base);
}

.area-card:hover .area-icon img {
    transform: scale(1.05);
}

.area-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.area-card:hover .area-title {
    color: var(--color-primary);
}

/* ============================================
   VIDEO SECTION — Modern Professional Style
   ============================================ */
.section-video {
    background-color: var(--color-white);
    background-image:
        /* Puntos decorativos sutiles */
        radial-gradient(rgba(0, 162, 154, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(56, 104, 187, 0.06) 1px, transparent 1px),
        /* Gradientes de acento */
        radial-gradient(ellipse 80% 60% at 30% 20%, rgba(0, 162, 154, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 80%, rgba(56, 104, 187, 0.04) 0%, transparent 60%);
    background-size:
        30px 30px,
        40px 40px,
        100% 100%,
        100% 100%;
    background-position:
        0 0,
        15px 15px,
        0 0,
        0 0;
    text-align: center;
    position: relative;
}

/* Decorative floating shapes */
.section-video::before,
.section-video::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.section-video::before {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 162, 154, 0.06) 0%, transparent 70%);
    top: -80px;
    left: -60px;
}

.section-video::after {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(56, 104, 187, 0.05) 0%, transparent 70%);
    bottom: -60px;
    right: -40px;
}

/* Video Header (Badge + Title + Subtitle) */
.video-header {
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.video-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 9999px;
    margin-bottom: var(--space-md);
}

.video-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.2;
}

.video-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 20px -8px rgba(0, 0, 0, 0.06);
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.video-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    outline: none;
}

/* Play Button Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.35);
    transition: all 0.4s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.15);
}

.video-play-overlay:hover .video-play-btn {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
}

.video-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.video-play-btn svg {
    width: 34px;
    height: 34px;
    margin-left: 3px;
}

.video-play-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.video-play-overlay:hover .video-play-text {
    opacity: 1;
}

/* ============================================
   SECTION DIVIDER — Decorative Separator
   ============================================ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.section-divider .divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gray-300));
}

.section-divider .divider-line:last-child {
    background: linear-gradient(to left, transparent, var(--color-gray-300));
}

.section-divider .divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    transform: rotate(45deg);
    border-radius: 1px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-divider:hover .divider-diamond {
    opacity: 1;
    transform: rotate(45deg) scale(1.3);
}

/* Divider with animated gradient pulse */
.section-divider-pulse .divider-line {
    background: linear-gradient(
        to right,
        transparent,
        var(--color-primary-light),
        var(--color-primary),
        var(--color-primary-light),
        transparent
    );
    background-size: 200% 100%;
    animation: divider-shimmer 3s ease-in-out infinite;
}

.section-divider-pulse .divider-line:last-child {
    background: linear-gradient(
        to left,
        transparent,
        var(--color-primary-light),
        var(--color-primary),
        var(--color-primary-light),
        transparent
    );
    background-size: 200% 100%;
    animation: divider-shimmer 3s ease-in-out infinite;
}

@keyframes divider-shimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slogan-title {
        font-size: var(--font-size-3xl);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .slogan-title {
        font-size: var(--font-size-2xl);
    }

    .areas-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .area-card-link {
        padding: var(--space-lg) var(--space-md);
    }

    .area-icon img {
        width: 120px;
    }

    .area-title {
        font-size: var(--font-size-xs);
    }

    .video-wrapper:hover {
        transform: none;
    }

    .video-title {
        font-size: var(--font-size-2xl);
    }

    .video-subtitle {
        font-size: var(--font-size-base);
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
}