* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    padding-top: 100px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 193, 7, 0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(255, 193, 7, 0.7); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ffc107;
    z-index: 1000;
    padding: 15px 0;
    animation: fadeInUp 0.8s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ffc107;
    transition: all 0.3s ease;
}

.nav-logo:hover img {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.nav-logo span {
    font-size: 1.4em;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffc107;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #1a1a2e !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(255,193,7,0.1) 0%, transparent 100%);
    border-bottom: 3px solid #ffc107;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    margin-bottom: 30px;
    animation: scaleIn 1s ease-out 0.2s both;
}

.logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #ffc107;
    box-shadow: 0 0 50px rgba(255, 193, 7, 0.4);
    transition: all 0.4s ease;
    animation: glow 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 80px rgba(255, 193, 7, 0.8);
}

header h1 {
    font-size: 4em;
    color: #ffc107;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    letter-spacing: 10px;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.tagline {
    font-size: 1.4em;
    color: #aaa;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* About */
.about {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.about:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-5px);
}

.about h2 {
    color: #ffc107;
    font-size: 2em;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

/* Instalaciones */
.instalaciones {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.2s both;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.instalaciones:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 193, 7, 0.3);
}

.instalaciones h2 {
    color: #ffc107;
    font-size: 2em;
    margin-bottom: 30px;
}

.instalaciones-photo {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 20px;
}

.instalaciones-photo img {
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    border: 4px solid #ffc107;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.instalaciones-photo img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3);
}

.instalaciones-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.info-item {
    text-align: center;
    padding: 25px 35px;
    background: linear-gradient(145deg, #1e3a5f, #16213e);
    border: 2px solid #ffc107;
    border-radius: 15px;
    transition: all 0.4s ease;
    animation: float 4s ease-in-out infinite;
}

.info-item:nth-child(2) {
    animation-delay: 0.5s;
}

.info-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.4);
}

.info-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.info-label {
    font-size: 1.1em;
    color: #ccc;
    text-transform: uppercase;
}

/* CTA Button */
.cta {
    text-align: center;
    margin: 60px 0;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-oposiciones {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 25px 50px;
    font-size: 1.5em;
    font-weight: bold;
    color: #1a1a2e;
    background: #ffc107;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.4);
}

.btn-oposiciones:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.6);
}

.btn-icon {
    font-size: 1.5em;
    animation: rotate 3s linear infinite;
}

/* Team */
.team {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.team:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 193, 7, 0.3);
}

.team h2 {
    color: #ffc107;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.team-photo {
    text-align: center;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 20px;
}

.team-photo img {
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    border: 4px solid #ffc107;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.team-photo img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.member {
    background: linear-gradient(145deg, #1e3a5f, #16213e);
    border: 2px solid #ffc107;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,193,7,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.member:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease;
}

.member:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.4);
    border-color: #ffca28;
}

.member:nth-child(1) { animation: fadeInLeft 1s ease-out 0.8s both; }
.member:nth-child(2) { animation: fadeInUp 1s ease-out 0.9s both; }
.member:nth-child(3) { animation: fadeInRight 1s ease-out 1s both; }

.member h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.member:hover h3 {
    color: #ffc107;
}

.member .role {
    color: #ffc107;
    font-style: italic;
    font-size: 1.1em;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

footer p {
    margin: 5px 0;
    transition: color 0.3s ease;
}

footer:hover p {
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
        letter-spacing: 5px;
    }

    .tagline {
        font-size: 1.1em;
    }

    .btn-oposiciones {
        padding: 20px 30px;
        font-size: 1.2em;
    }

    .logo {
        width: 150px;
        height: 150px;
    }

    .instalaciones-info {
        gap: 30px;
    }

    .info-item {
        padding: 20px 25px;
    }

    .info-number {
        font-size: 2.5em;
    }
}
