/* home-styles.css - Diseño moderno para academia STEAM */

/* ==================== HERO OPTIMIZADO ==================== */
.page-home .hero {
    height: 460px !important; /* Un poco más grande que el original */
    min-height: 460px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-home .hero::before {
    background: linear-gradient(135deg, 
        rgba(29, 69, 103, 0.95) 0%, 
        rgba(29, 69, 103, 0.85) 100%);
    z-index: 1;
}

.page-home .hero::after {
    width: 30%;
    transform: skewX(20deg);
    background: linear-gradient(90deg, rgba(57, 132, 198, 0.7), transparent);
}

.page-home .hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 40px 20px;
    text-align: center;
}

.page-home .hero-logo {
    height: 90px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.page-home .hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    max-width: 900px;
}

/* Efecto de partículas sutiles en el fondo del hero */
.page-home .hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px, 50px 50px;
    opacity: 0.4;
    z-index: 0;
}

/* ==================== COMPROMISO MEJORADO ==================== */
.page-home .compromiso {
    padding: 80px 0;
    position: relative;
}

.page-home .compromiso::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(246, 248, 250, 0.9) 0%, 
        rgba(255, 255, 255, 1) 100%);
    z-index: -1;
}

.page-home .comp-row {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.page-home .comp-text {
    flex: 1;
    padding-right: 30px;
}

.page-home .comp-text h2 {
    font-size: 2.2rem;
    color: var(--banner);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-home .comp-text h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--btn);
    border-radius: 2px;
}

.page-home .comp-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 25px;
}

.page-home .comp-image {
    flex: 0 0 auto;
    position: relative;
}

.page-home .circle-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid white;
    box-shadow: 0 15px 35px rgba(29, 69, 103, 0.12);
    transition: transform 0.5s ease;
}

.page-home .circle-img:hover {
    transform: scale(1.03);
}

.page-home .decor-lines {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, 
        rgba(57, 132, 198, 0.15) 0%, 
        rgba(29, 69, 103, 0.08) 100%);
    transform: rotate(15deg);
    border-radius: 20px;
    z-index: -1;
}

/* ==================== INSCRIPCIONES MODERNO ==================== */
.page-home .inscripciones {
    min-height: 320px;
    margin: 60px 0;
    position: relative;
    background: linear-gradient(135deg, 
        var(--banner) 0%, 
        #15324e 100%);
    border-radius: 16px;
    overflow: hidden;
}

.page-home .inscripciones-overlay {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.25) 0%, 
        rgba(0, 0, 0, 0.15) 100%);
}

.page-home .inscripciones-inner {
    position: relative;
    z-index: 2;
    padding: 70px 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-home .inscripciones h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.page-home .inscripciones .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-home .inscripciones .btn.primary.large {
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.page-home .inscripciones .btn.primary.large::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.page-home .inscripciones .btn.primary.large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(57, 132, 198, 0.25);
}

.page-home .inscripciones .btn.primary.large:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* ==================== CATEGORÍAS STEAM (SIN CAMBIOS EN BLOQUES) ==================== */
.page-home .categorias {
    padding: 80px 0;
}

.page-home .section-title {
    font-size: 1.8rem;
    color: var(--banner);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.page-home .section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--btn);
    margin: 10px auto;
    border-radius: 2px;
}

/* Mantengo los bloques STEAM exactamente igual */
.page-home .cat-row,
.page-home .cat-image,
.page-home .cat-grid,
.page-home .cat-box {
    /* Sin cambios - mantienen su estilo original */
}

/* ==================== CURSOS CORTOS MEJORADO ==================== */
.page-home .cursos-cortos {
    padding: 80px 20px !important;
    margin: 60px 0 !important;
    background: linear-gradient(135deg, #337AB7 0%, #2a6495 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-home .cursos-cortos::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-home .curso-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--text) !important;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important; /* Sombra EXTERNA */
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-home .curso-card h2 {
    font-size: 2.2rem;
    color: var(--banner);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(57, 132, 198, 0.2);
    text-align: center;
}

.page-home .curso-card p {
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text);
}

.page-home .curso-card .btn.primary {
    display: block !important;
    margin: 0 auto !important;
    width: fit-content;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--btn);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(57, 132, 198, 0.25);
}

.page-home .curso-card .btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(57, 132, 198, 0.35);
}

/* ==================== CONVOCATORIA MODERNA ==================== */
.page-home .convocatoria {
    padding: 80px 20px !important;
    margin: 60px 0 !important;
    background: linear-gradient(135deg, 
        rgba(29, 69, 103, 0.95) 0%, 
        rgba(20, 50, 80, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.page-home .convocatoria::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.page-home .convocatoria-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.page-home .convocatoria h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-home .convocatoria h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--btn);
    border-radius: 2px;
}

.page-home .convocatoria p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-home .convocatoria .btn.primary {
    background: white;
    color: var(--banner);
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.page-home .convocatoria .btn.primary:hover {
    background: var(--btn);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ==================== UBICACIÓN MEJORADA ==================== */
.page-home .ubicacion {
    padding: 80px 20px;
    margin: 60px auto;
    max-width: 1100px;
}

.page-home .ubicacion h2 {
    font-size: 2.2rem;
    color: var(--banner);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.page-home .ubicacion h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--btn);
    border-radius: 2px;
}

.page-home .map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 10px solid white;
    position: relative;
    transition: transform 0.3s ease;
}

.page-home .map-container:hover {
    transform: translateY(-5px);
}
.page-home .beneficios-steam {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0 20px 20px;
    margin-top: -20px;
}

.page-home .beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-home .beneficio-card {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 5px solid var(--btn);
}

.page-home .beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(57, 132, 198, 0.15);
}

.page-home .beneficio-icon {
    font-size: 2.5rem;
    color: var(--btn);
    margin-bottom: 20px;
}

.page-home .beneficio-card h4 {
    font-size: 1.3rem;
    color: var(--banner);
    margin-bottom: 15px;
}

.page-home .beneficio-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
    .page-home .hero {
        height: 420px !important;
        min-height: 420px;
    }
    
    .page-home .hero-title {
        font-size: 1.9rem;
    }
    
    .page-home .comp-row {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .page-home .comp-text {
        padding-right: 0;
    }
    
    .page-home .comp-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .page-home .decor-lines {
        right: -10px;
        top: -10px;
    }
}

@media (max-width: 768px) {
    .page-home .hero {
        height: 380px !important;
        min-height: 380px;
    }
    
    .page-home .hero-title {
        font-size: 1.6rem;
    }
    
    .page-home .hero-logo {
        height: 70px;
    }
    
    .page-home .curso-card {
        padding: 35px 25px;
    }
    
    .page-home .inscripciones h2 {
        font-size: 1.9rem;
    }
    
    .page-home .convocatoria h2 {
        font-size: 1.9rem;
    }
    
    .page-home .beneficios-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .page-home .hero {
        height: 340px !important;
        min-height: 340px;
    }
    
    .page-home .hero-title {
        font-size: 1.4rem;
    }
    
    .page-home .curso-card {
        padding: 30px 20px;
    }
    
    .page-home .circle-img {
        width: 240px;
        height: 240px;
    }
}