/* =========================================
   LICEO MODERNO - ESTILO INSTITUCIONAL
   ========================================= */

:root {
    --primary: #1e3799;
    /* Azul Académico */
    --secondary: #4a69bd;
    /* Azul Claro */
    --accent: #f6b93b;
    /* Dorado Escudo */
    --dark: #0c2461;
    --light: #f1f2f6;
    --white: #ffffff;
    --text: #2f3542;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.tb-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-mini span {
    margin-right: 15px;
}

.contact-mini i {
    color: var(--accent);
    margin-right: 5px;
}

.portal-link {
    color: var(--accent);
    font-weight: bold;
    transition: 0.3s;
}

.portal-link:hover {
    color: white;
    text-decoration: underline;
}

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
}

.logo i {
    font-size: 2.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-text small {
    font-size: 0.7rem;
    color: #777;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--dark);
}

/* --- HERO --- */
.hero {
    height: 70vh;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 36, 97, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: white;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

/* --- QUICK ACCESS --- */
.quick-access {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-bottom: 80px;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.qa-card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.qa-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary);
}

.qa-card.highlight {
    background: var(--primary);
    color: white;
}

.qa-card.highlight i,
.qa-card.highlight h3,
.qa-card.highlight p {
    color: white;
}

.qa-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.qa-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.qa-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* --- NOTICIAS --- */
.section-news {
    padding: 0 0 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.news-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.news-img {
    position: relative;
    height: 200px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--dark);
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 4px;
}

.news-body {
    padding: 20px;
}

.news-body h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.news-body p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.news-body a {
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- DESCARGAS --- */
.section-downloads {
    background-color: var(--light);
    padding: 80px 0;
}

.download-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.dl-text h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.dl-text p {
    font-size: 1.1rem;
    color: #555;
}

.dl-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dl-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-weight: bold;
    transition: 0.2s;
    border: 1px solid #ddd;
}

.dl-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dl-item i {
    margin-right: 10px;
    color: var(--primary);
}

.dl-btn {
    background: var(--light);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* --- CONTACTO --- */
.section-contact {
    padding: 80px 0;
    background: var(--dark);
    color: white;
}

.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.c-info h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.c-info p {
    color: #a4b0be;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1.1rem;
}

.info-list i {
    color: var(--accent);
}

.c-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
}

.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato';
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--secondary);
}

/* --- FOOTER --- */
.footer {
    background: #0a1d4e;
    color: #7f8c8d;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

/* --- WHATSAPP --- */
.float-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .qa-grid,
    .news-grid,
    .download-box,
    .contact-flex {
        grid-template-columns: 1fr;
    }

    .qa-card {
        margin-bottom: 10px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }
}