/* ===== ENTORNO DE APRENDIZAJE — PREMIUM STYLES ===== */

/* Hero Section */
.ea-hero {
    position: relative;
    padding: 110px 20px 90px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, #0a1a2e 0%, #1a2d45 40%, #0d3040 100%);
}

.ea-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../imagenes/hero-bg.webp') center/cover no-repeat;
    opacity: 0.06;
    z-index: 0;
}

.ea-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 206, 207, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ea-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 206, 207, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ea-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}

.ea-hero-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 206, 207, 0.15) 0%, rgba(0, 206, 207, 0.05) 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    border: 1px solid rgba(0, 206, 207, 0.2);
    backdrop-filter: blur(10px);
}

.ea-hero-badge i {
    font-size: 2rem;
    color: #00cecf;
}

.ea-hero-title {
    font-size: 2.7rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 18px;
    font-family: Verdana, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.ea-hero-title span {
    background: linear-gradient(135deg, #00cecf, #00e6e7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ea-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: Verdana, sans-serif;
    margin: 0;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
}

.ea-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.ea-hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ===== Grid Section ===== */
.ea-grid-section {
    background: #f8fcfc;
    padding: 70px 20px 80px;
}

.ea-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.ea-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a2d45;
    margin: 0 0 16px;
    font-family: Verdana, sans-serif;
}

.ea-section-header h2 span {
    color: #00cecf;
}

.ea-section-header p {
    font-size: 1.02rem;
    color: #777;
    line-height: 1.7;
    font-family: Verdana, sans-serif;
    margin: 0;
}

.ea-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* ===== Plugin Cards ===== */
.ea-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.ea-card.ea-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.ea-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 206, 207, 0.14);
    border-color: rgba(0, 206, 207, 0.2);
    color: inherit;
}

.ea-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fafb 0%, #e8f8f9 100%);
}

.ea-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ea-card:hover .ea-card-image-wrapper img {
    transform: scale(1.06);
}

.ea-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 206, 207, 0.08) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ea-card:hover .ea-card-image-overlay {
    opacity: 1;
}

.ea-card-view-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00cecf 0%, #00a8a9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 206, 207, 0.35);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.ea-card:hover .ea-card-view-btn {
    transform: translateY(0);
}

.ea-card-body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ea-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2d45;
    margin: 0 0 10px;
    font-family: Verdana, sans-serif;
    line-height: 1.3;
}

.ea-card-body p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
    margin: 0 0 16px;
    font-family: Verdana, sans-serif;
    flex: 1;
}

.ea-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00cecf;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Verdana, sans-serif;
    transition: gap 0.3s ease;
}

.ea-card:hover .ea-card-link {
    gap: 10px;
}

/* ===== Benefits Section ===== */
.ea-benefits-section {
    background: white;
    padding: 70px 20px;
}

.ea-benefits-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ea-benefit-card {
    background: linear-gradient(135deg, #f8fcfc 0%, #f0fafb 100%);
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid rgba(0, 206, 207, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.ea-benefit-card.ea-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

.ea-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 206, 207, 0.1);
    border-color: rgba(0, 206, 207, 0.25);
}

.ea-benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 206, 207, 0.12) 0%, rgba(0, 206, 207, 0.04) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.ea-benefit-card:hover .ea-benefit-icon {
    background: linear-gradient(135deg, #00cecf 0%, #00a8a9 100%);
}

.ea-benefit-icon i {
    font-size: 1.3rem;
    color: #00cecf;
    transition: color 0.3s ease;
}

.ea-benefit-card:hover .ea-benefit-icon i {
    color: white;
}

.ea-benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2d45;
    margin: 0 0 12px;
    font-family: Verdana, sans-serif;
}

.ea-benefit-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-family: Verdana, sans-serif;
}

/* ===== CTA Section ===== */
.ea-cta-section {
    background: #f8fcfc;
    padding: 90px 20px;
    text-align: center;
}

.ea-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ea-cta-inner h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a2d45;
    margin: 0 0 20px;
    font-family: Verdana, sans-serif;
}

.ea-cta-inner h2 span {
    color: #00cecf;
}

.ea-cta-inner > p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    font-family: Verdana, sans-serif;
    margin: 0 0 40px;
}

.ea-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ea-cta-btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    font-family: Verdana, sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
}

.ea-cta-primary {
    background: linear-gradient(135deg, #00cecf 0%, #00a8a9 100%);
    color: white;
    box-shadow: 0 6px 24px rgba(0, 206, 207, 0.3);
}

.ea-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 206, 207, 0.4);
    color: white;
}

.ea-cta-secondary {
    background: #1a2d45;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.ea-cta-secondary:hover {
    background: #0a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ea-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .ea-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ea-hero {
        padding: 90px 16px 70px;
    }

    .ea-hero-title {
        font-size: 1.8rem;
    }

    .ea-hero-subtitle {
        font-size: 1rem;
    }

    .ea-grid-section {
        padding: 50px 16px 60px;
    }

    .ea-section-header h2 {
        font-size: 1.7rem;
    }

    .ea-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .ea-benefits-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .ea-cta-inner h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .ea-hero {
        padding: 80px 12px 60px;
    }

    .ea-hero-title {
        font-size: 1.5rem;
    }

    .ea-hero-badge {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .ea-hero-badge i {
        font-size: 1.5rem;
    }

    .ea-card-image-wrapper {
        height: 180px;
    }

    .ea-card-body {
        padding: 20px 22px 24px;
    }

    .ea-cta-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
}

/* Initial state for animation - cards start visible if no JS */
@media (prefers-reduced-motion: reduce) {
    .ea-card,
    .ea-benefit-card {
        opacity: 1;
        transform: none;
    }
}
