/* =========================================================
   OMASUR UNI 2026
   Estilos principales
   ========================================================= */

/* ---------- Configuración general ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    background: #4c171e;
}

a {
    color: inherit;
    text-decoration: none;
}




.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;


    background-image: url("ipehhori.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}




.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            90deg,
            rgba(76, 18, 25, 0.84) 0%,
            rgba(92, 25, 32, 0.70) 42%,
            rgba(86, 19, 28, 0.73) 100%
        );

    pointer-events: none;
}


/* ---------- Barra superior ---------- */

.navbar {
    position: relative;
    z-index: 5;

    width: min(1100px, calc(100% - 48px));
    height: 78px;
    margin: 0 auto;

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


/* Logo + nombre */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.brand-logo img {
    width: 37px;
    height: 37px;
    object-fit: contain;
}


/* Navegación central */

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;

    margin-left: auto;
    margin-right: 38px;
}

.nav-links a {
    font-size: 18px;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.72;
}


/* Acciones derecha */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 18px;
    font-weight: 700;
}

.icon {
    font-size: 27px;
    line-height: 1;
    transform: rotate(180deg);
}

.register-nav {
    min-height: 48px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border-radius: 15px;
    background: #951b2b;

    font-size: 18px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.register-nav:hover {
    background: #a92234;
    transform: translateY(-1px);
}

.user-icon {
    font-size: 23px;
    line-height: 1;
}


/* ---------- Contenido central ---------- */

.hero-content {
    position: relative;
    z-index: 2;

    min-height: calc(100vh - 78px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px 90px;
}


/* Subtítulo */

.subtitle {
    margin-top: -8px;
    margin-bottom: 27px;

    font-size: clamp(21px, 2vw, 35px);
    font-weight: 700;
    line-height: 1.2;
}


/* Título */

h1 {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 46px;

    font-size: clamp(58px, 5.2vw, 95px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -2px;
}

h1 span {
    color: #ffffff;
}

h1 strong {
    margin-top: 17px;

    color: #ff7073;
    font-weight: 900;
}


/* ---------- Botones principales ---------- */

.main-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn {
    min-height: 64px;
    padding: 0 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    border-radius: 15px;

    font-size: 18px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 25px;
    line-height: 1;
}
.icono-bases-3d {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

/* Inscribir delegación */

.btn-primary {
    min-width: 280px;

    color: #68151f;
    background: #ffffff;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    background: #f7f7f7;
}


/* Mi credencial */

.btn-secondary {
    min-width: 226px;

    color: #ffffff;
    background: rgba(72, 17, 24, 0.10);

    border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
}


/* ---------- NUEVO BOTÓN: BASES DEL CONCURSO ---------- */

.btn-bases {
    min-width: 280px;
    margin-top: 18px;

    color: #ffffff;
    background: #951b2b;

    border: 2px solid rgba(255, 255, 255, 0.18);

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
}

.btn-bases:hover {
    background: #a92234;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
}


/* ---------- Secciones de destino ---------- */

.anchor-section {
    position: relative;
    z-index: 3;

    min-height: 1px;
    scroll-margin-top: 80px;
}


/* ---------- WhatsApp ---------- */

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;

    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #20c76a;

    font-size: 43px;
    color: #ffffff;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

.whatsapp i {
    position: absolute;
    top: 4px;
    right: 2px;

    width: 17px;
    height: 17px;

    border-radius: 50%;
    background: #ff5b5b;
    border: 2px solid #ffffff;
}

/* ---------- WhatsApp ---------- */

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;

    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    text-decoration: none;

    transition: transform 0.2s ease;
}

.whatsapp:hover {
    transform: scale(1.08);
}

.icono-whatsapp-3d {
    width: 74px;
    height: 74px;

    object-fit: contain;
    display: block;
}
@media (max-width: 700px) {

    .whatsapp {
        width: 60px;
        height: 60px;

        right: 15px;
        bottom: 15px;
    }

    .icono-whatsapp-3d {
        width: 60px;
        height: 60px;
    }
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        width: calc(100% - 30px);
    }

    .nav-links {
        gap: 18px;
        margin-right: 18px;
    }

    .nav-links a {
        font-size: 15px;
    }

    .nav-actions {
        gap: 12px;
    }

    .login-link {
        font-size: 15px;
    }

    .register-nav {
        padding: 0 15px;
        font-size: 15px;
    }

    .brand {
        font-size: 16px;
    }
}


@media (max-width: 700px) {

    .navbar {
        height: auto;
        padding-top: 15px;

        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
        padding-bottom: 12px;
    }

    .nav-actions {
        position: absolute;
        top: 15px;
        right: 0;
    }

    .login-link {
        display: none;
    }

    .register-nav {
        min-height: 42px;
        padding: 0 12px;
    }

    .hero-content {
        min-height: calc(100vh - 130px);
        padding-top: 65px;
    }

    .subtitle {
        max-width: 90%;
        margin-bottom: 20px;
    }

    h1 {
        margin-bottom: 34px;
        font-size: clamp(47px, 13vw, 72px);
    }

    h1 strong {
        margin-top: 10px;
    }

    .main-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-bases {
        width: min(320px, 90vw);
        min-width: 0;
    }

    .btn-bases {
        margin-top: 12px;
    }

    .whatsapp {
        width: 60px;
        height: 60px;
        right: 15px;
        bottom: 15px;
        font-size: 34px;
    }
}


@media (max-width: 430px) {

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .subtitle {
        font-size: 19px;
    }

    h1 {
        font-size: 45px;
        letter-spacing: -1px;
    }

    .btn {
        min-height: 58px;
        font-size: 16px;
    }
}
