/* ================= CONFIGURACIÓN GENERAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #001f3f;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= HEADER AMPER ================= */

.header-amper {
    width: 100%;
    height: 82px;
    background: #e30613;
    padding: 0 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 68px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.header-menu a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    transition: 0.3s;
}

.header-menu a:hover {
    color: #ffe0e0;
}

/* ================= INTRO PRINCIPAL ================= */

.intro-principal {
    width: 100%;
    background: #f4f6f9;
    padding: 45px 8% 35px 8%;
}

.intro-contenido {
    max-width: 1050px;
    margin: 0 auto;
}

.etiqueta {
    display: inline-block;
    background: #ffe6e8;
    color: #e30613;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 16px;
}

.intro-contenido h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    color: #001f3f;
    margin-bottom: 16px;
}

.intro-contenido p {
    font-size: 18px;
    line-height: 1.7;
    color: #001f3f;
}

/* ================= BLOQUES PROFESIONALES ================= */

.bloque-info {
    width: 100%;
    background: #f4f6f9;
    padding: 45px 8%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 55px;
    align-items: center;
}

.bloque-invertido {
    grid-template-columns: 420px minmax(0, 1fr);
}

.bloque-invertido .bloque-texto {
    order: 2;
}

.bloque-invertido .bloque-imagen {
    order: 1;
}

.bloque-texto {
    background: #ffffff;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.08);
    border-left: 6px solid #e30613;
}

.numero-bloque {
    display: inline-block;
    font-size: 15px;
    font-weight: 900;
    color: #e30613;
    margin-bottom: 12px;
}

.bloque-texto h2 {
    font-size: 32px;
    font-weight: 900;
    color: #001f3f;
    margin-bottom: 18px;
    line-height: 1.2;
}

.bloque-texto p {
    font-size: 17px;
    line-height: 1.7;
    color: #26384d;
}

.bloque-imagen {
    width: 100%;
}

.bloque-imagen img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

/* ================= PÁGINAS: CATEGORÍAS / ESTUDIANTES ================= */

.pagina-categorias {
    background: #f4f6f9;
    min-height: 100vh;
}

.categorias-banner {
    background: linear-gradient(rgba(0, 31, 63, 0.92), rgba(0, 31, 63, 0.92));
    padding: 75px 8%;
    text-align: center;
    color: #ffffff;
}

.categorias-banner h1 {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 16px;
}

.categorias-banner p {
    font-size: 18px;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
}

.contenedor-categorias {
    width: 90%;
    max-width: 1150px;
    margin: 45px auto 50px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.categoria-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-left: 7px solid #e30613;
    transition: 0.3s;
}

.categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.16);
}

.categoria-icono {
    min-width: 65px;
    height: 65px;
    background: #e30613;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categoria-icono i {
    font-size: 28px;
}

.categoria-info h2 {
    font-size: 26px;
    color: #001f3f;
    margin-bottom: 12px;
    font-weight: 900;
}

.categoria-info p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.categoria-info ul {
    padding-left: 22px;
}

.categoria-info li {
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
}

/* ================= PÁGINA ¿POR QUÉ AMPER? ================= */

.pagina-amper {
    width: 100%;
    background: #f4f6f9;
}

.amper-hero {
    width: 100%;
    padding: 70px 8%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 55px;
    align-items: center;
    background: #f4f6f9;
}

.amper-hero-texto {
    background: #ffffff;
    padding: 42px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    border-left: 7px solid #e30613;
}

.amper-hero-texto h1 {
    font-size: 46px;
    font-weight: 900;
    color: #001f3f;
    line-height: 1.1;
    margin-bottom: 20px;
}

.amper-hero-texto p {
    font-size: 17px;
    line-height: 1.8;
    color: #26384d;
    margin-bottom: 16px;
}

.amper-hero-imagen img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.amper-texto-largo {
    width: 100%;
    padding: 20px 8% 55px 8%;
    background: #f4f6f9;
}

.amper-texto-contenido {
    max-width: 1050px;
    margin: 0 auto;
    background: #ffffff;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.amper-texto-contenido h2 {
    font-size: 36px;
    font-weight: 900;
    color: #001f3f;
    margin-bottom: 20px;
}

.amper-texto-contenido p {
    font-size: 17px;
    line-height: 1.8;
    color: #26384d;
    margin-bottom: 18px;
}

.amper-valores {
    width: 100%;
    padding: 20px 8% 65px 8%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: #f4f6f9;
}

.valor-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    transition: 0.3s;
    border-top: 6px solid #e30613;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.16);
}

.valor-icono {
    width: 60px;
    height: 60px;
    background: #e30613;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.valor-icono i {
    font-size: 26px;
}

.valor-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: #001f3f;
    margin-bottom: 12px;
}

.valor-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.amper-beneficios {
    width: 100%;
    padding: 20px 8% 70px 8%;
    background: #ffffff;
}

.amper-beneficios-titulo {
    max-width: 900px;
    margin: 0 auto 35px auto;
    text-align: center;
}

.amper-beneficios-titulo h2 {
    font-size: 38px;
    font-weight: 900;
    color: #001f3f;
    margin-bottom: 12px;
}

.beneficios-lista {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.beneficio-item {
    background: #f4f6f9;
    padding: 28px;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-left: 6px solid #e30613;
}

.beneficio-item span {
    min-width: 50px;
    height: 50px;
    background: #e30613;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beneficio-item h3 {
    font-size: 22px;
    font-weight: 900;
    color: #001f3f;
    margin-bottom: 10px;
}

.beneficio-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #26384d;
}

/* ================= CAJA DE POSTULACIÓN ================= */

.postula-box {
    width: 100%;
    padding: 20px 8% 80px 8%;
    background: #f4f6f9;
}

.postula-contenido {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 45px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-top: 7px solid #e30613;
}

.postula-contenido h2 {
    font-size: 34px;
    font-weight: 900;
    color: #001f3f;
    margin-bottom: 14px;
}

.postula-contenido p {
    font-size: 17px;
    line-height: 1.7;
    color: #26384d;
    max-width: 750px;
    margin: 0 auto 28px auto;
}

.btn-postular {
    display: inline-block;
    background: #e30613;
    color: #ffffff;
    padding: 15px 34px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
    transition: 0.3s;
}

.btn-postular:hover {
    background: #b9000b;
    transform: translateY(-3px);
}

/* ================= MAPA FINAL ================= */

.seccion-mapa {
    width: 100%;
    background: #f4f6f9;
    padding: 55px 8% 70px 8%;
}

.mapa-contenido {
    max-width: 900px;
    margin: 0 auto 35px auto;
    text-align: center;
}

.mapa-contenido h2 {
    font-size: 38px;
    font-weight: 900;
    color: #001f3f;
    margin-bottom: 14px;
}

.mapa-contenido p {
    font-size: 17px;
    line-height: 1.6;
    color: #26384d;
}

.mapa-caja {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    background: #ffffff;
}

.mapa-caja img {
    width: 100%;
    height: auto;
    display: block;
}

.mapa-caja iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* ================= FOOTER ================= */

.footer-amper {
    width: 100%;
    background: #003f87;
    color: #ffffff;
    padding: 30px 50px;
}

.footer-contenedor {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-izquierda {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-copy {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-derecha {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-siguenos {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.footer-redes {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-redes a {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.footer-redes a:hover {
    background: #ffffff;
    color: #003f87;
    transform: translateY(-4px);
}

/* ================= RESPONSIVE TABLET ================= */

@media (max-width: 1100px) {
    .bloque-info,
    .bloque-invertido,
    .amper-hero {
        grid-template-columns: 1fr;
    }

    .bloque-invertido .bloque-texto,
    .bloque-invertido .bloque-imagen {
        order: unset;
    }

    .header-menu {
        gap: 20px;
    }

    .bloque-imagen img {
        height: 300px;
        max-width: 650px;
    }

    .amper-valores {
        grid-template-columns: repeat(2, 1fr);
    }

    .amper-hero-imagen img {
        height: 320px;
    }
}

/* ================= RESPONSIVE CELULAR ================= */

@media (max-width: 768px) {
    .header-amper {
        height: auto;
        padding: 12px 18px;
        flex-direction: column;
        gap: 10px;
    }

    .header-logo img {
        height: 58px;
    }

    .header-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .header-menu a {
        font-size: 14px;
    }

    .intro-principal {
        padding: 35px 25px 25px 25px;
    }

    .intro-contenido h1 {
        font-size: 34px;
    }

    .intro-contenido p {
        font-size: 16px;
    }

    .bloque-info,
    .bloque-invertido {
        grid-template-columns: 1fr;
        padding: 35px 25px;
        gap: 28px;
    }

    .bloque-texto {
        padding: 26px;
    }

    .bloque-texto h2 {
        font-size: 28px;
    }

    .bloque-texto p {
        font-size: 16px;
    }

    .bloque-imagen img {
        height: auto;
        max-height: none;
        object-fit: contain;
        box-shadow: 0 8px 22px rgba(0,0,0,0.14);
    }

    .categorias-banner {
        padding: 50px 25px;
    }

    .categorias-banner h1 {
        font-size: 32px;
    }

    .categorias-banner p {
        font-size: 16px;
    }

    .contenedor-categorias {
        width: 92%;
        margin: 35px auto 45px auto;
    }

    .categoria-card {
        flex-direction: column;
        padding: 24px;
    }

    .categoria-info h2 {
        font-size: 23px;
    }

    .amper-hero {
        padding: 45px 25px 30px 25px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .amper-hero-texto {
        padding: 28px;
    }

    .amper-hero-texto h1 {
        font-size: 34px;
    }

    .amper-hero-texto p {
        font-size: 16px;
    }

    .amper-hero-imagen img {
        height: auto;
        object-fit: contain;
    }

    .amper-texto-largo {
        padding: 20px 25px 45px 25px;
    }

    .amper-texto-contenido {
        padding: 28px;
    }

    .amper-texto-contenido h2 {
        font-size: 28px;
    }

    .amper-texto-contenido p {
        font-size: 16px;
    }

    .amper-valores {
        grid-template-columns: 1fr;
        padding: 20px 25px 50px 25px;
    }

    .amper-beneficios {
        padding: 45px 25px;
    }

    .amper-beneficios-titulo h2 {
        font-size: 30px;
    }

    .beneficios-lista {
        grid-template-columns: 1fr;
    }

    .beneficio-item {
        flex-direction: column;
        padding: 24px;
    }

    .postula-box {
        padding: 20px 25px 55px 25px;
    }

    .postula-contenido {
        padding: 30px 22px;
    }

    .postula-contenido h2 {
        font-size: 28px;
    }

    .postula-contenido p {
        font-size: 16px;
    }

    .btn-postular {
        width: 100%;
        text-align: center;
    }

    .seccion-mapa {
        padding: 45px 25px 55px 25px;
    }

    .mapa-contenido h2 {
        font-size: 30px;
    }

    .mapa-caja iframe {
        height: 360px;
    }

    .footer-amper {
        padding: 28px 20px;
        text-align: center;
    }

    .footer-contenedor {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .footer-izquierda {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-derecha {
        flex-direction: column;
        gap: 15px;
    }
}