/* ============================================
   ANIMACIONES GLOBALES
=========================================== */

/* Línea azul animada en títulos */
.rf-anim-title {
    position: relative;
    border-left: none !important;
}

.rf-anim-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 0;
    background: #2b3e88;
    border-radius: 2px;
    transition: height 0.55s ease;
}

.rf-anim-title.visible::before {
    height: 100%;
}

/* ============================================
   TRANSICIÓN ENTRE PÁGINAS
=========================================== */
@keyframes rf-curtain-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes rf-curtain-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Cortina blanca que cubre el contenido en el primer frame,
   luego desaparece. El header queda encima (z-index: 999) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 998;
    pointer-events: none;
    animation: rf-curtain-out 0.3s ease forwards;
}

/* Al hacer click en un link: la cortina reaparece antes de navegar */
body.rf-leaving::after {
    animation: rf-curtain-in 0.2s ease forwards;
}

/* ============================================
   1. RESET & TIPOGRAFÍA (Helvetica)
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    padding-top: 140px; /* Compensa header fixed */
}

/* ============================================
   2. HEADER DINÁMICO (Hide on Scroll)
=========================================== */
header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;

    transform: translateY(0);
    transition: transform 0.35s ease, box-shadow 0.3s ease;
}

/* Se oculta al bajar */
header.hide {
    transform: translateY(-100%);
}

/* Efecto sombra cuando hay scroll */
header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

header.scrolled .logo-container {
    padding: 15px 0;
}

/* LOGO */
.logo-container {
    padding: 21px 40px;
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s ease;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.rf-logo-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #111111;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.rf-logo-amp {
    color: #2b3e88;
}

.rf-tagline {
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #111111;
    letter-spacing: 0.04em;
    white-space: nowrap;
    margin-left: 30px;
    line-height: 1;
    align-self: center;
}

/* NAVBAR */
nav {
    width: 100%;
    background-color: #2C459C;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 14px 25px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 700;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 5px;
    font-weight: 300;
}

nav ul li a:hover {
    background-color: #1f4fa8;
}

nav ul li a.active {
    background-color: #ffffff;
    color: #2b65cc;
}


/* Ajuste para que el nav tenga espacio a la derecha */
nav {
    width: 100%;
    background-color: #2C459C;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Botón contacto */
.btn-contacto {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    background: #ffffff;
    color: #2C459C;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Icono */
.btn-contacto i {
    transition: transform 0.4s ease;
}

/* Hover efecto */
.btn-contacto:hover {
    background: #1f4fa8;
    color: #ffffff;
}

/* Animación tipo enviar */
.btn-contacto:hover i {
    transform: translateX(6px) rotate(15deg);
}

/* ============================================
   3. FOOTER
=========================================== */
.rf-footer-modern {
    margin-top: auto;
    background-color: #2C459C;
    color: #ffffff;
    padding: 80px 10% 50px 10%;
    width: 100%;
}

.rf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.rf-footer-block h4 {
    font-size: 17px;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
}

.rf-footer-block p {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 400;
}

.rf-footer-block span {
    display: block;
    font-size: 15px;
    margin: 20px 0 10px 0;
    font-weight: 400;
}

/* REDES */
.rf-footer-social {
    display: none;
}

.rf-footer-social a {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    color: #313896;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.rf-footer-social a:hover {
    transform: translateY(-5px);
    background-color: #f0f0f0;
}

/* AVISO DE PRIVACIDAD */
.rf-footer-bottom {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 35px;
    padding-bottom: 10px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.rf-footer-bottom a {
    display: inline-block;
    color: #ffffff !important;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 10px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.rf-footer-bottom a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   4. RESPONSIVE
=========================================== */
@media (max-width: 1024px) {
    .rf-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    body {
        padding-top: 130px;
    }

.logo-container {
    padding: 12px 20px;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
    .rf-logo-text {
        font-size: 22px;
    }

.rf-tagline {
    font-size: 14px;
    margin-left: 0;
    text-align: center;
}

    .logo {
        font-size: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .rf-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {

    body {
        padding-top: 120px;
    }

.logo-container {
    padding: 10px 16px;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

    .rf-logo-text {
        font-size: 20px;
    }

.rf-tagline {
    display: block;
    font-size: 13px;
    margin-left: 0;
    font-weight: 700;
    font-style: italic;
    text-align: center;
}
}




/* ==============================
   RESPONSIVE BOTÓN CONTACTO
================================ */

@media (max-width: 768px) {

    /* Ocultamos el botón del header */
    .btn-contacto {
        display: none;
    }

    /* Botón flotante */
    .btn-contacto-floating {
        position: fixed;
        bottom: 25px;
        right: 20px;

        width: 55px;
        height: 55px;

        background: #2C459C;
        color: #ffffff;

        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);

        z-index: 9999;
        text-decoration: none;

        transition: all 0.3s ease;
    }

    .btn-contacto-floating:hover {
        transform: translateY(-4px);
        background: #1f4fa8;
    }

    .btn-contacto-floating i {
        transition: transform 0.4s ease;
    }

    .btn-contacto-floating:hover i {
        transform: translateX(4px) rotate(15deg);
    }
}
