
:root {
    /* Colores IESIT */
    --iesitblue: #1417f3;
    --iesitblue-dark: #0e1079;
    
    /* Degradado del hero: azul oscuro azul IESIT */
    --becas-hero-gradient: linear-gradient(135deg, #0a0c4a 0%, #0e1079 40%, #1417f3 100%);
    --becas-card-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --becas-card-hover-shadow: 0 30px 80px rgba(20, 23, 243, 0.15);
}


.text-gradient {
    background: linear-gradient(135deg, var(--iesitblue), var(--iesitblue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cta {
    background: linear-gradient(90deg, #ffffff, #b0b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-delay="0"] { transition-delay: 0s; }
.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="500"] { transition-delay: 0.5s; }

.becas-hero.animate-on-scroll {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

.becas-hero.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.becas-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 80px;
    background: var(--becas-hero-gradient);
    color: white;
    overflow: hidden;
}

.becas-hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.75) 80%,
        #ffffff 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* 4.2 - Fondo del hero */
.becas-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* 4.3 - Patrón decorativo */
.becas-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

/* 4.4 - Animación del patrón */
@keyframes heroPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* 4.5 - Contenido del hero */
.becas-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
}

/* 4.6 - Badge del hero */
.becas-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 4.7 - Título del hero */
.becas-hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.becas-hero-highlight {
    background: linear-gradient(135deg, #a5b4fc, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* 4.8 - Subtítulo del hero */
.becas-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 32px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* 4.9 - Estadísticas del hero */
.becas-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 36px;
}

.becas-hero-stat {
    text-align: center;
}

.becas-hero-stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.becas-hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 4.10 - Botón del hero */
.becas-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: white;
    color: var(--iesitblue-dark);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
}

.becas-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: #f0f2ff;
}

.becas-hero-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.becas-hero-btn:hover svg {
    transform: translateY(4px);
}

/* ============================================ */
/* ===== 5. SECCIÓN PRINCIPAL DE BECAS ===== */
/* ============================================ */

.becas-section {
    padding: 0 0 80px;
    background: #ffffff;
}

.becas-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* ===== 6. ENCABEZADO DE SECCIÓN ===== */
/* ============================================ */

.becas-section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* 6.1 - Etiqueta de la sección */
.becas-section-tag {
    display: inline-block;
    background: #eef0fa;
    color: var(--iesitblue);
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* 6.2 - Título de la sección */
.becas-section-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--iesitblue-dark);
    margin-bottom: 12px;
}

/* 6.3 - Subtítulo de la sección */
.becas-section-subtitle {
    font-size: 1.1rem;
    color: #5d6d7e;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* 6.4 - Línea decorativa */
.becas-section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--iesitblue), var(--iesitblue-dark));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================ */
/* ===== 7. GRID DE BECAS ===== */
/* ============================================ */

.becas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* ============================================ */
/* ===== 8. TARJETA DE BECA (BASE) ===== */
/* ============================================ */

.beca-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--becas-card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 360px;
}

.beca-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--becas-card-hover-shadow);
    border-color: rgba(20, 23, 243, 0.1);
}

/* 8.1 - Header de la tarjeta */
.beca-card-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* 8.2 - Icono de la tarjeta */
.beca-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--iesitblue), var(--iesitblue-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.beca-card-icon svg {
    width: 26px;
    height: 26px;
    color: white;
    stroke: white;
}

/* 8.3 - Badge de la tarjeta */
.beca-card-badge {
    background: #eef0fa;
    color: var(--iesitblue);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* 8.4 - Cuerpo de la tarjeta */
.beca-card-body {
    padding: 16px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 8.5 - Título de la tarjeta */
.beca-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--iesitblue-dark);
    margin: 0 0 8px;
}

/* 8.6 - Descripción de la tarjeta */
.beca-card-desc {
    font-size: 0.9rem;
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0 0 16px;
}

.beca-card-desc strong {
    color: var(--iesitblue-dark);
}

/* 8.7 - Descuento de la tarjeta */
.beca-card-discount {
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.beca-card-discount-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--iesitblue);
    line-height: 1;
}

.beca-card-discount-label {
    font-size: 0.9rem;
    color: #4a5a6a;
    font-weight: 500;
}

/* 8.8 - Requisitos de la tarjeta */
.beca-card-requirements {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.beca-card-requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5d6d7e;
}

.beca-card-requirement svg {
    flex-shrink: 0;
    color: var(--iesitblue);
}

.beca-card-requirement strong {
    color: var(--iesitblue-dark);
}

/* 8.9 - Condición de la tarjeta */
.beca-card-condition {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #5d6d7e;
    margin-top: 4px;
}

.beca-card-condition svg {
    flex-shrink: 0;
    color: var(--iesitblue);
}

/* 8.10 - Footer de la tarjeta */
.beca-card-footer {
    padding: 12px 24px 20px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.beca-card-duration {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ============================================ */
/* ===== 9. TARJETA DESTACADA (HERMANDAD) ===== */
/* ============================================ */

.beca-card-featured {
    border: 2px solid var(--iesitblue);
    background: linear-gradient(135deg, #ffffff, #f8faff);
    grid-column: span 1;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Badge de destacada */
.beca-card-featured-badge {
    position: absolute;
    top: 30px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #78350f;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 5;
}

/* Header de la tarjeta destacada */
.beca-card-featured .beca-card-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Body de la tarjeta destacada */
.beca-card-featured .beca-card-body {
    padding: 16px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Título de la tarjeta destacada */
.beca-card-featured .beca-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--iesitblue-dark);
    margin: 0 0 4px;
}

/* Descripción de la tarjeta destacada */
.beca-card-featured .beca-card-desc {
    font-size: 0.9rem;
    color: #5d6d7e;
    line-height: 1.6;
    margin: 0 0 16px;
}

.beca-card-featured .beca-card-desc strong {
    color: var(--iesitblue-dark);
}

/* Beneficio destacado */
.beca-card-featured-benefit {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.beca-card-featured-icon {
    font-size: 2rem;
    line-height: 1;
}

.beca-card-featured-text {
    display: flex;
    flex-direction: column;
}

.beca-card-featured-title {
    font-size: 1rem;
    font-weight: 700;
    color: #78350f;
}

.beca-card-featured-sub {
    font-size: 0.85rem;
    color: #92400e;
}

/* Condición de la tarjeta destacada */
.beca-card-featured .beca-card-condition {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #5d6d7e;
    margin-top: 2px;
}

.beca-card-featured .beca-card-condition svg {
    flex-shrink: 0;
    color: var(--iesitblue);
}

/* Footer de la tarjeta destacada */
.beca-card-featured .beca-card-footer {
    padding: 12px 24px 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.beca-card-featured .beca-card-duration {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Tablets grandes y laptops pequeñas */
@media (max-width: 1024px) {
    .becas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .becas-hero-title {
        font-size: 2.8rem;
    }
    .becas-hero-stats {
        gap: 32px;
    }
    .becas-section-title {
        font-size: 2.2rem;
    }
    .becas-cta-title {
        font-size: 1.8rem;
    }
}

/* 11.3 - Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
    .becas-hero {
        min-height: auto;
        padding: 60px 20px 50px;
    }
    .becas-hero-title {
        font-size: 2.2rem;
    }
    .becas-hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    .becas-hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .becas-hero-stat-number {
        font-size: 1.6rem;
    }
    .becas-hero-gradient-overlay {
        height: 55%;
    }

    .becas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .beca-card {
        min-height: auto;
    }
    .beca-card-featured {
        min-height: auto;
        grid-column: span 1;
    }

    .becas-section-title {
        font-size: 1.8rem;
    }
    .becas-section-subtitle {
        font-size: 1rem;
    }

    .becas-cta {
        padding: 40px 20px;
        border-radius: 16px;
    }
    .becas-cta-title {
        font-size: 1.5rem;
    }
    .becas-cta-text {
        font-size: 1rem;
    }
    .becas-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .becas-cta-btn-primary,
    .becas-cta-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* 11.4 - Móviles pequeños */
@media (max-width: 480px) {
    .becas-hero {
        padding: 40px 16px 40px;
    }
    .becas-hero-title {
        font-size: 1.8rem;
    }
    .becas-hero-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    .becas-hero-subtitle {
        font-size: 0.9rem;
    }
    .becas-hero-stats {
        gap: 16px;
    }
    .becas-hero-stat-number {
        font-size: 1.3rem;
    }
    .becas-hero-stat-label {
        font-size: 0.7rem;
    }
    .becas-hero-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    .becas-hero-gradient-overlay {
        height: 45%;
    }

    .becas-section-header {
        margin-bottom: 30px;
    }
    .becas-section-title {
        font-size: 1.5rem;
    }
    .becas-section-tag {
        font-size: 0.7rem;
    }

    .beca-card-header {
        padding: 18px 18px 0;
        flex-direction: column;
        gap: 10px;
    }
    .beca-card-icon {
        width: 44px;
        height: 44px;
    }
    .beca-card-icon svg {
        width: 22px;
        height: 22px;
    }
    .beca-card-body {
        padding: 12px 18px 16px;
    }
    .beca-card-title {
        font-size: 1rem;
    }
    .beca-card-desc {
        font-size: 0.85rem;
    }
    .beca-card-discount-value {
        font-size: 1.4rem;
    }
    .beca-card-footer {
        padding: 10px 18px 16px;
    }

    .beca-card-featured-badge {
        font-size: 0.6rem;
        padding: 3px 12px;
        top: -8px;
        right: 14px;
    }
    .beca-card-featured-benefit {
        flex-direction: column;
        text-align: center;
        padding: 14px;
    }
    .beca-card-featured .beca-card-body {
        padding: 12px 18px 16px;
    }
    .beca-card-featured .beca-card-condition {
        padding: 10px 14px;
    }

    .becas-cta {
        padding: 30px 16px;
    }
    .becas-cta-title {
        font-size: 1.3rem;
    }
    .becas-cta-icon {
        font-size: 2.2rem;
    }
}