:root { 
    --primary-color: #002D5A; 
    --secondary-color: #C8102E; 
    --bg-color: #F4F7F6; 
    --text-color: #333333; 
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: Arial, sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
    overflow-x: hidden;
}

.header { 
    background: #ffffff; 
    padding: 1rem; 
    text-align: center; 
    border-bottom: 2px solid #e0e0e0; 
    position: relative;
    z-index: 10;
}

.logo { 
    max-width: 180px; 
    height: auto; 
}

.nav-principal ul { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    margin-top: 15px; 
}

.nav-principal a { 
    text-decoration: none; 
    color: var(--primary-color); 
    font-weight: bold; 
    font-size: 1.1rem; 
}

.hero-premium {
    position: relative;
    padding: 7rem 1rem;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-premium::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0, 45, 90, 0.85), rgba(0, 45, 90, 0.85)), url('../assets/fondo-buses.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoomFondo 20s ease-out infinite alternate;
}

.hero-premium .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: flotarArriba 1.2s ease-out 0.2s forwards;
}

.hero-premium h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-premium p {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

.campus-section, .validador-section, .noticias-section { 
    padding: 4rem 1rem; 
    text-align: center; 
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.portales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    opacity: 0;
    animation: flotarArriba 1.2s ease-out 0.6s forwards;
}

.portal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-top: 5px solid var(--primary-color);
}

.portal-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.logo-operadora {
    height: 60px; 
    width: auto;
    max-width: 150px;
    margin-bottom: 20px;
    object-fit: contain; 
}

.acceder-link {
    font-weight: bold;
    color: #0056b3;
    font-size: 1rem;
    margin-top: auto;
}

.form-validador { 
    margin-top: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
}

.form-validador input, .form-validador button { 
    padding: 15px; 
    font-size: 1.4rem; 
    border-radius: 8px; 
    width: 100%; 
    max-width: 350px; 
    text-align: center; 
}

.form-validador input { 
    border: 2px solid #cccccc; 
}

.form-validador button { 
    background: var(--secondary-color); 
    color: #ffffff; 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
    transition: background 0.3s ease, transform 0.2s ease;
}

.form-validador button:hover {
    background: #a00d24;
    transform: scale(1.02);
}

.noticias-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.noticia-card { 
    background: #ffffff; 
    border-radius: 8px; 
    padding: 20px; 
    border: 1px solid #dddddd; 
    text-align: left; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
}

.etiqueta { 
    background: #e0e0e0; 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 10px;
}

.noticia-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer { 
    text-align: center; 
    padding: 2rem; 
    background: #1a1a1a; 
    color: #ffffff; 
}

@keyframes zoomFondo {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes flotarArriba {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}