:root {
    --azul-volsur: #1a234e;
    --dorado-volsur: #c5a059;
    --dorado-claro: #e2c997;
    --gris-texto: #333333;
    --fondo-alertas: #fffdf5;
    --gris-volsur: #e9ecef;
    --oscuro: #222222;
    --blanco: #ffffff;
    --gris-claro: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    color: var(--gris-texto);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================= */
/* NAVBAR / CABECERA                                 */
/* ================================================= */

.navbar {
    background: linear-gradient(100deg, var(--azul-volsur) 0%, #232d63 100%);
    color: white;
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(26, 35, 78, 0.18);
    border-bottom: 2px solid var(--dorado-volsur);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    cursor: pointer;
}

.main-logo {
    height: auto;
    max-height: 50px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--blanco);
    text-transform: lowercase;
}

.brand-name span {
    color: var(--dorado-volsur);
    font-weight: 700;
}

.by-fraveo {
    font-size: 0.7rem;
    color: var(--dorado-volsur);
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

#menu-check, 
.menu-icono,
.btn-expediente-mobile {
    display: none;
}

.navbar nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar nav ul li {
    margin-left: 25px;
    position: relative;
}

.navbar-link {
    color: var(--dorado-volsur);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-link:hover {
    color: var(--blanco);
}

.navbar-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dorado-volsur);
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

.btn-expediente-nav {
    background-color: #1a234e;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #c5a059;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-expediente-nav:hover {
    background-color: #c5a059 !important;
    color: #1a234e !important;
    border-color: #1a234e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(197,160,89,0.3);
}

.btn-expediente-nav::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--oscuro);
    list-style: none;
    min-width: 180px;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.dropdown-menu li {
    margin-left: 0 !important;
    width: 100%;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--dorado-volsur);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--blanco);
    padding-left: 24px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsivo del Navbar */
@media (max-width: 850px) {
    .menu-icono {
        display: block;
        font-size: 1.8rem;
        color: var(--dorado-volsur);
        cursor: pointer;
    }

    .btn-expediente-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        margin-right: 14px;
        padding: 8px 14px;
        background-color: var(--dorado-volsur);
        color: var(--azul-volsur) !important;
        font-weight: 700;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-decoration: none;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
    }

    .btn-expediente-mobile:hover {
        background-color: var(--dorado-claro);
    }

    .navbar nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--oscuro);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    .navbar nav ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        align-items: center;
    }

    .navbar nav ul li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        border: none;
        padding: 8px 0;
        margin-top: 8px;
    }

    .dropdown-item {
        padding: 8px 0;
        text-align: center;
    }

    .navbar nav ul li:has(.btn-expediente-nav),
    nav .btn-expediente-nav {
        display: none;
    }

    #menu-check:checked ~ nav {
        max-height: 480px;
    }
}

@media (max-width: 380px) {
    .btn-expediente-mobile {
        font-size: 0.72rem;
        padding: 7px 10px;
    }
}

/* ================================================= */
/* FOOTER                                            */
/* ================================================= */

.footer-volsur {
    background-color: var(--azul-volsur);
    color: #ffffff;
    padding: 50px 0 20px;
    border-top: 3px solid var(--dorado-volsur);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    padding: 0 20px;
}

.footer-col h3, 
.footer-col h4 {
    color: var(--dorado-volsur);
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.footer-col p i {
    color: var(--dorado-volsur);
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--dorado-claro);
    padding-left: 6px;
}

.footer-col p a:hover {
    color: var(--dorado-volsur);
}

.footer-link-highlight {
    color: var(--dorado-volsur) !important;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
}

.footer-link-highlight:hover {
    text-decoration: underline !important;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--dorado-volsur);
    text-decoration: none;
    font-size: 1.05rem;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    background: var(--dorado-volsur);
    color: var(--azul-volsur);
    transform: translateY(-3px);
}

.badge-rnt {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
}

.badge-rnt-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbb;
    display: block;
    margin-bottom: 2px;
}

.badge-rnt-code {
    font-size: 0.95rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.verify-link {
    font-size: 0.82rem;
    color: #aaa !important;
    text-decoration: underline;
}

.verify-link:hover {
    color: #ffffff !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #b9c0d4;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* ================================================= */
/* BOTÓN FLOTANTE WHATSAPP                           */
/* ================================================= */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}