﻿/* Variables de color */
:root {
    --primary-color: #0054a6;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --overlay-color: rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
}

/* HEADER */
.site-header {
    background: #0046D2;
    /*background: var(--primary-color);*/
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 8%;
}
    .site-header .header-top {
        padding: 0.5rem;
        font-size: 0.9rem;
        background: #004080;
        display: flex;
        justify-content: space-between;
    }

    .site-header .header-main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
    }

    .site-header .logo {
        font-size: 1.5rem;
        text-decoration: none;
        color: white;
    }

    .site-header .main-nav ul {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
    }

    .site-header .main-nav li {
        position: relative;
    }

    .site-header .main-nav a {
        text-decoration: none;
        color: white;
        padding: 0.5rem 1rem;
        display: block;
        transition: background 0.3s;
    }

        .site-header .main-nav a:hover {
            background: rgba(255,255,255,0.2);
        }

    .site-header .main-nav .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        color: var(--text-color);
        display: none;
        min-width: 150px;
        border-radius: 0 0 4px 4px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .site-header .main-nav .has-dropdown:hover .dropdown {
        display: block;
    }

    .site-header .main-nav .dropdown li a {
        color: var(--text-color);
    }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
}

/* HERO */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    /*background: url("img/estado_fisico.jpg") center/cover no-repeat;*/
    /*background: url("https://via.placeholder.com/1600x800?text=Imagen+Hero") center/cover no-repeat;*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
}

.hero-content {
    position: relative;
    color: white;
    text-align: center;
    padding: 0 1rem;
    animation: fadeInUp 1s ease-out;
}

    .hero-content h1 {
        font-size: 2.5rem;
        margin: 0;
    }

    .hero-content p {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

.cta-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

    .cta-btn:hover {
        transform: scale(1.05);
    }

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursos */
.courses {
    padding: 2rem 1rem;
    max-width: 1500px;
    margin: 0 auto;
}

    .courses h2 {
        text-align: center;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
    }

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .course-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .course-item .img-wrap {
        overflow: hidden;
    }

    .course-item img {
        /*width: 50%;*/
        height: 56vh;
        min-height: 100px;
        display: block;
        transition: transform 0.5s;
    }

    .course-item:hover img {
        transform: scale(1.1);
    }

    .course-item h3 {
        margin: 1rem;
    }

    .course-item p {
        margin: 0 1rem 1rem;
    }

    .course-item .btn {
        display: block;
        margin: 0 1rem 1rem;
        padding: 0.5rem 1rem;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        text-align: center;
        border-radius: 4px;
        transition: background 0.3s;
    }

        .course-item .btn:hover {
            background: #003e7f;
        }

/* Eventos */
.events {
    background: var(--secondary-color);
    padding: 2rem 1rem;
    text-align: center;
}

    .events h2 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

.event-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.event-item {
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
    width: 200px;
    transition: transform 0.3s;
}

.event-item1 {
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
    width: 200px;
    transition: transform 0.3s;
}

.event-item2 {
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
    width: 60%;
    transition: transform 0.3s;
    text-align: center
}

.event-item:hover {
    transform: translateY(-3px);
}

    .event-item1:hover, .event-item2:hover {
        transform: translateY(-10px);
    }

/* Footer */
.site-footer {
    background: #222;
    color: white;
    padding: 2rem 1rem;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
}

    .footer-widgets .widget h4 {
        margin-top: 0;
    }

    .footer-widgets ul {
        list-style: none;
        padding: 0;
    }

        .footer-widgets ul li a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }

            .footer-widgets ul li a:hover {
                color: var(--secondary-color);
            }

        .footer-widgets ul.social li {
            display: inline;
            margin-right: 0.5rem;
        }

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--primary-color);
        width: 200px;
    }

        .site-header .main-nav ul {
            flex-direction: column;
        }

    .menu-toggle {
        display: block;
    }
    
    .logo {
    width: 50%;
}
}
