/**
 * ESTILOS MODERNOS ADICIONALES
 * Diseño ultra moderno y amigable
 */

/* Mejoras visuales adicionales */
.hero-section {
    position: relative;
    overflow: visible;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(107, 142, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Glassmorphism effect para cards */
.feature-card,
.curso-card,
.modalidad-card,
.publicacion-item-card,
.publicacion-detalle-hero {
    backdrop-filter: blur(10px);
}

.feature-card,
.curso-card,
.modalidad-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animaciones mejoradas */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-image img {
    animation: float 6s ease-in-out infinite;
}

/* Efecto de ondas en el fondo */
.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

/* Botones con efecto neón sutil */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Efecto de partículas en el fondo (opcional) */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(107, 142, 107, 0.1);
    border-radius: 50%;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Mejoras en formularios */
.form-group input:not(:placeholder-shown):valid {
    border-color: var(--color-success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236B8E6B' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Efecto de typing para textos */
.typing-effect {
    border-right: 2px solid var(--color-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--color-primary); }
}

/* Cards con efecto 3D */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Gradientes modernos */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sombras suaves mejoradas */
.shadow-soft {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 8px rgba(0, 0, 0, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Efecto de brillo en hover */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 
        0 0 20px rgba(107, 142, 107, 0.3),
        0 0 40px rgba(107, 142, 107, 0.2),
        0 0 60px rgba(107, 142, 107, 0.1);
}

/* Mejoras en el header */
.main-header {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(107, 142, 107, 0.95) 0%, rgba(90, 122, 90, 0.95) 100%);
}

/* Loading spinner moderno */
.spinner-modern {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-beige);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mejoras en modales */
.modal-content {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

/* Efecto de parallax mejorado */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-element {
    will-change: transform;
}

/* Mejoras en responsive */
@media (max-width: 768px) {
    .hero-section::after {
        opacity: 0.05;
    }
    
    .wave-bg {
        height: 50px;
    }
}

/* Animación de entrada para elementos */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de hover en imágenes */
.image-hover-effect {
    transition: all 0.3s ease;
    filter: brightness(1);
}

.image-hover-effect:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Mejoras en botones */
.btn {
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Efecto de neón sutil en títulos */
.title-glow {
    text-shadow: 
        0 0 10px rgba(107, 142, 107, 0.3),
        0 0 20px rgba(107, 142, 107, 0.2),
        0 0 30px rgba(107, 142, 107, 0.1);
}

/* Mejoras en cards */
.card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Efecto de gradiente animado */
.gradient-animated {
    background: linear-gradient(-45deg, #6B8E6B, #8FB28F, #A68B5B, #B89A6F);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}





