    /* Estillos en General */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    :root {
        --primary: #8e2038;
        --primary-dark: #72182c;
        --secondary: #000;
        --light: #f8f9fa;
        --dark: #212529;
        --gray: #6c757d;
        --light-gray: #e9ecef;
    }

    html,
    body {
        width: 100%;
        min-height: 100vh;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: var(--dark);
    }

    html {
        overflow-y: scroll;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) var(--light-gray);
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* Barra de Navegacion (Navbar) */
    .navbar-custom {
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 20px;
        position: fixed;
        top: 0;
        z-index: 1030;
        width: 100%;
    }

    .nav-link {
        color: #333;
        font-size: 1rem;
        text-decoration: none;
        margin-right: 15px;
        position: relative;
        transition: color 0.3s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0%;
        height: 2px;
        background-color: var(--primary);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--primary);
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-link[data-section-title] {
        font-weight: 600;
        letter-spacing: .3px;
    }

    .nav-link[data-section-title]:hover {
        color: var(--primary-dark);
    }

    .nav-item svg {
        vertical-align: middle;
        transition: transform 0.2s ease;
    }

    .nav-item svg:hover {
        transform: scale(1.2);
    }

    /* Contenido Principal */
    main.container-fluid {
        width: 100%;
        flex: 1;
        overflow: hidden;
    }

    /* Overlay búsqueda */
    .search-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .75);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1080;
    }

    .search-box {
        background: #fff;
        padding: 24px 28px;
        border-radius: 12px;
        display: flex;
        gap: 12px;
        width: min(92%, 480px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    }

    .search-box input {
        flex: 1;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 10px 14px;
        font-size: 1rem;
        outline: none;
    }

    .search-box button {
        background: #8e2038;
        color: #fff;
        border: none;
        border-radius: 6px;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        transition: .25s;
    }

    .search-box button:hover {
        background: #72182c;
    }

    /* Estilos para que se Resalte la Busqueda (Lupa de Navegacion) */
    .search-highlight {
        background-color: #fff8e1;
        padding: 2px 4px;
        border-radius: 3px;
        animation: highlightFade 2s ease;
    }

    @keyframes highlightFade {
        from {
            background-color: #ffeb3b;
        }

        to {
            background-color: #fff8e1;
        }
    }

    /* Botón flotante "Subir" */
    .btn-top {
        position: fixed;
        right: 24px;
        bottom: 32px;
        width: 48px;
        height: 48px;
        border: none;
        border-radius: 50%;
        background: var(--primary);
        color: #fff;
        font-size: 1.4rem;
        line-height: 48px;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
        transition: transform .25s ease, background-color .25s;
        display: none;
        z-index: 1050;
    }

    .btn-top:hover {
        transform: translateY(-4px);
        background: var(--primary-dark);
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Footer Styles */
    footer.bg-dark {
        background-color: var(--secondary) !important;
        color: var(--light);
        padding: 2.5rem 0;
    }

    footer .text-primary {
        color: var(--primary) !important;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
        position: relative;
    }

    footer h5::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: var(--primary);
    }

    footer h6 {
        font-size: 0.95rem;
        font-weight: 500;
    }

    footer p {
        margin-bottom: 0.25rem;
        font-size: 0.9rem;
        color: var(--light-gray);
    }

    footer .btn-outline-light {
        border-color: var(--light-gray);
        color: white;
        padding: 0.5rem 1.25rem;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    footer .btn-outline-light:hover {
        background-color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(142, 32, 56, 0.3);
    }

/* —— Estilo GLOBAL de la barra de desplazamiento —— */
:root{
    
    --scroll-track: #f1f1f1;
    --scroll-thumb: #8e2038;
    --scroll-thumb-hover: #8e2038;
}

/*  Navegadores WebKit / Blink (Chrome, Edge, Safari, …) */
::-webkit-scrollbar{
    width: 14px;            /* Grosor vertical */
    height: 14px;           /* Grosor horizontal */
}

::-webkit-scrollbar-track{
    background: var(--scroll-track);
    border-radius: 8px;     /* Esquinas redondeadas */
}

::-webkit-scrollbar-thumb{
    background-color: var(--scroll-thumb);
    border-radius: 8px;
    border: 3px solid var(--scroll-track); /* “gap” alrededor del pulgar */
}

::-webkit-scrollbar-thumb:hover{
    background-color: var(--scroll-thumb-hover);
}

/*  Firefox (solo grosor “auto” o “thin” */
html{
    scrollbar-width: auto;                            
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
