:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-bg: #0f172a;
    --darker-bg: #0a0f1f;
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --institution-card-bg: rgba(255, 255, 255, 0.08);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Ubuntu", Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--dark-bg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" 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"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.hero-section .schoolweb-logo {
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.hero-section .schoolweb-logo:hover {
    transform: scale(1.05);
}

.btn-cta {
    background: white;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: white;
    color: #764ba2;
}

/* Scroll Container */
.scroll-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--darker-bg);
    height: 100vh;
    overflow-y: auto;
}

.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Institution Cards */
.institution-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.institution-card:hover {
    transform: translateX(10px) translateY(-5px);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(67, 97, 238, 0.5);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.institution-card img {
    transition: transform 0.3s ease;
}

.institution-card:hover img {
    transform: rotate(5deg) scale(1.05);
}

.institution-card h5 {
    transition: color 0.3s ease;
}

.institution-card:hover h5 {
    color: var(--accent-color) !important;
}

/* Iconos grandes */
.icon-lg {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card:hover .icon-lg {
    transform: scale(1.1) rotate(5deg);
}

/* Cards de beneficios */
.card {
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Formulario */
.form-control {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
    border-color: var(--primary-color);
    background: white;
}

/* Iconos de contacto */
.icon-contact {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.icon-contact:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* Efecto hover en enlaces de redes sociales */
.hover-opacity-100:hover {
    opacity: 1 !important;
    transform: translateY(-3px);
}

/* Footer links */
footer a {
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    color: var(--accent-color) !important;
    transform: translateX(5px);
    display: inline-block;
}

/* Imagen con glow */
.img-with-glow {
    transition: all 0.3s ease;
}

.img-with-glow:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) !important;
}

/* Botón volver arriba */
#btn-volver-arriba {
    transition: all 0.3s ease;
}

#btn-volver-arriba:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .scroll-container {
        height: auto;
        max-height: 70vh;
    }
    
    .institution-card:hover {
        transform: translateX(5px) translateY(-3px);
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .icon-lg {
        width: 50px;
        height: 50px;
    }
    
    .icon-lg i {
        font-size: 1.5rem !important;
    }
    
    #btn-volver-arriba {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Animaciones personalizadas */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilo para títulos sticky */
.sticky-top {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mejora de contraste para textos */
.text-secondary {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Efecto de brillo en botones */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

/* Ratio video/image */
.ratio-16x9 {
    border-radius: 1rem;
}

/* Card de beneficios - colores específicos */
.bg-primary.bg-opacity-10 {
    background-color: rgba(67, 97, 238, 0.1);
}

.bg-success.bg-opacity-10 {
    background-color: rgba(76, 201, 144, 0.1);
}

.bg-info.bg-opacity-10 {
    background-color: rgba(76, 201, 240, 0.1);
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(251, 188, 5, 0.1);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: #4cc990 !important;
}

.text-info {
    color: var(--accent-color) !important;
}

.text-warning {
    color: #fbbc05 !important;
}