:root {
    --primary: #0D1B39;
    --secondary: #2B6EA5;
    --accent: #5397C7;
    --light: #E8E8E8;
    --dark: #182A3E;
    --gray: #666;
    --light-gray: #f5f7fa;
}
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
        
body {
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* ===== MENÚ MÓVIL - OCULTAR EN DESKTOP ===== */
.mobile-menu {
    display: none !important;
}

/* ===== MENÚ DESKTOP - MOSTRAR EN DESKTOP ===== */
.desktop-menu {
    display: flex !important;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Header & Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
        
.logoContainer {
    display: flex;
    align-items: center;
    gap: 15px;
}
        
.logo {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.title {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}
        
.title span:first-child {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 5px;
}
        
.title span:last-child {
    font-size: 0.8rem;
    color: var(--gray);
}
        
.menuNav {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    transition: all 0.4s ease;
}
        
.menuNav li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
    display: block;
    padding: 8px 0;
}

.menuNav li a:hover {
    color: var(--secondary);
}
        
.menuNav .btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.menuNav li {
    position: relative;
}
        
.menuNav > li > a {
    text-decoration: none;
    color: #222;
    padding: 10px 15px;
    display: block;
}
        
.menuNav li:hover > a {
    background: #f0f0f0;
    border-radius: 6px;
}

.menuNav a i {
    margin-right: 8px;
    font-size: 14px;
    color: inherit;
    vertical-align: middle;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 1001;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
.slide.active {
    opacity: 1;
    z-index: 2;
}
        
.slide1 {
    background: linear-gradient(rgba(13, 27, 57, 0.8), rgba(13, 27, 57, 0.8)), url('https://images.unsplash.com/photo-1517400508447-f8dd518b86db?q=80&w=1170&auto=format&fit=crop') no-repeat center/cover;
}
        
.slide2 {
    background: linear-gradient(rgba(13, 27, 57, 0.8), rgba(13, 27, 57, 0.8)), url('https://images.unsplash.com/photo-1518391846015-55a9cc003b25?q=80&w=1170&auto=format&fit=crop') no-repeat center/cover;
}
        
.slide3 {
    background: linear-gradient(rgba(13, 27, 57, 0.8), rgba(13, 27, 57, 0.8)), url('images/group.png') no-repeat center/cover;
}
        
.sliderContent {
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    color: white;
}
        
.sliderContent span:first-child {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}
        
.slideTitle {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}
        
.sliderContent p {
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}
        
.sliderContent a {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}
        
.sliderContent a:hover {
    background-color: white;
    color: var(--primary);
}
        
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
.nav-button:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
}
        
.prev { left: 20px; }
.next { right: 20px; }
        
.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
        
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
        
.dot.active {
    background: white;
}

/* ==================== MEGA MENÚ ==================== */
.mega-menu {
    position: static !important;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: white;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.mega-menu:hover .mega-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mega-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: white;
    align-items: stretch;
}

/* SIDEBAR IZQUIERDA */
.mega-sidebar {
    width: 320px;
    background: #0D1B39;
    color: white;
    padding: 40px 30px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
}

.mega-subtitle {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8BA3C4;
    display: block;
    margin-bottom: 25px;
}

.mega-buttons {
    margin-bottom: 30px;
}

/* BOTONES UNIFICADOS */
.mega-sidebar .mega-btn,
.mega-sidebar .mega-btn-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 20px 0 25px;
    margin-bottom: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    background: transparent;
    color: #c8d9f0 !important;
}

.mega-sidebar .mega-btn.active,
.mega-sidebar .mega-btn-link.active {
    background: #2B6EA5;
    color: white !important;
}

.mega-sidebar .mega-btn.active::after,
.mega-sidebar .mega-btn-link.active::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: white;
}

.mega-sidebar .mega-btn:hover:not(.active),
.mega-sidebar .mega-btn-link:hover:not(.active) {
    background: rgba(43, 110, 165, 0.5);
    color: white !important;
}

.mega-sidebar .mega-btn span,
.mega-sidebar .mega-btn-link span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.mega-promo img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.mega-promo h5 {
    color: white;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.mega-promo p {
    color: #b0c4de !important;
    font-size: 13px;
    line-height: 1.5;
}

/* CONTENIDO DERECHO */
.mega-content {
    flex: 1;
    padding: 40px 30px;
    background: #f8f9fa;
    overflow-x: auto;
    height: auto;
}

.mega-title {
    color: #0D1B39;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #2B6EA5;
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: inline-block;
}

/* Grids */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.us-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.visa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Cards */
.mega-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.mega-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mega-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.mega-card-content {
    padding: 15px;
}

.mega-card-content h6 {
    font-size: 15px;
    font-weight: 700;
    color: #0D1B39;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-card-content h6 i {
    color: #2B6EA5;
    font-size: 12px;
    transition: transform 0.3s;
}

.mega-card:hover .mega-card-content h6 i {
    transform: translateX(5px);
}

.mega-card-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-links li {
    margin-bottom: 6px;
}

.mega-links li a {
    font-size: 12px;
    color: #2B6EA5;
    text-decoration: none;
    transition: all 0.2s;
}

.mega-links li a:hover {
    color: #0D1B39;
    padding-left: 5px;
}

/* US Residents Cards */
.us-column {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.us-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.us-column img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.us-column h6 {
    font-size: 16px;
    font-weight: 700;
    color: #0D1B39;
    padding: 15px 15px 0 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.us-column h6 i {
    color: #2B6EA5;
    font-size: 12px;
    transition: transform 0.3s;
}

.us-column:hover h6 i {
    transform: translateX(5px);
}

.us-divider {
    margin: 12px 15px;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, #2B6EA5, #e0e0e0);
}

.us-column ul {
    list-style: none;
    padding: 0 15px 15px 15px;
    margin: 0;
}

.us-column ul li {
    margin-bottom: 10px;
}

.us-column ul li a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.us-column ul li a:hover {
    color: #2B6EA5;
    padding-left: 5px;
}

/* Visa Cards */
.visa-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.visa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.visa-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.visa-card-content {
    padding: 15px;
}

.visa-card-content h6 {
    font-size: 15px;
    font-weight: 700;
    color: #0D1B39;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visa-card-content h6 i {
    color: #2B6EA5;
    font-size: 12px;
    transition: transform 0.3s;
}

.visa-card:hover .visa-card-content h6 i {
    transform: translateX(5px);
}

.visa-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visa-links li {
    margin-bottom: 8px;
}

.visa-links li a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.visa-links li a:hover {
    color: #2B6EA5;
    padding-left: 5px;
}

/* Paneles intercambiables */
.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
}

/* Flecha del menú */
.mega-menu > a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 10px 15px;
}

.mega-menu .menu-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.mega-menu:hover .menu-arrow {
    transform: rotate(180deg);
}

/* Top Bar */
.top-bar-custom {
    background-color: #0d1b39;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-wrapper {
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 100%;
}

.top-left-group,
.top-right-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    white-space: nowrap;
}

.info-item i {
    color: var(--secondary);
}

.top-socials {
    display: flex;
    gap: 8px;
}

.social-circle {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    transition: 0.3s;
}

.social-circle:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Service Section */
.service {
    padding: 100px 5%;
    text-align: center;
    background-color: white;
}

.service p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.containerCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.immigration, .studentVisa {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.immigration:hover, .studentVisa:hover {
    transform: translateY(-10px);
}

.immigration img, .studentVisa img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.immigration h3, .studentVisa h3 {
    color: var(--primary);
    margin: 20px 0 10px;
    padding: 0 20px;
}

.immigration p, .studentVisa p {
    color: var(--gray);
    padding: 0 20px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 10px 0 30px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: white;
}

/* Additional Services */
.additional-services {
    padding: 50px 10%;
    background-color: #f0f4f8;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card-mini {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-card-mini:hover {
    transform: translateY(-5px);
}

.service-card-mini i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.service-card-mini h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Bar Section */
.bar {
    padding: 80px 5%;
    background-color: var(--primary);
    color: white;
}

.containerCard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.containerCard .card {
    text-align: center;
    padding: 30px;
}

.containerCard .card span:first-child {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    color: var(--secondary);
}

.containerCard .card span:nth-child(2) {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* Testimonials */
.testimanial {
    padding: 100px 5%;
    text-align: center;
    background-color: var(--light);
}

.containerComment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.containerComment .card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s;
}

.containerComment .card:hover {
    transform: translateY(-10px);
}

.containerComment .card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.containerComment p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.subCard img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author h4 {
    color: var(--primary);
}

.author span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding-top: 80px;
    background: linear-gradient(rgba(13, 27, 57, 0.8), rgba(13, 27, 57, 0.8)), url('https://images.unsplash.com/photo-1551907053-251bc075d47c?q=80&w=1170&auto=format&fit=crop') no-repeat center/cover;
}

.contactInf {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.contactInf .card {
    text-align: center;
    padding: 0 20px;
    min-width: 200px;
}

.contactInf .card span:first-child {
    display: block;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.endFooter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 80px 5%;
}

.endFooter .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.endFooter .logTitle {
    display: flex;
    flex-direction: column;
}

.endFooter .logTitle .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.endFooter .logTitle span:first-child {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.socialMedia {
    display: flex;
    flex-direction: row;
    gap: 15px;
    list-style: none;
    padding: 0;
}

.socialMedia li {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.socialMedia li:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.endFooter h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.endFooter ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.endFooter ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.endFooter ul li a i {
    color: var(--secondary);
}

.endFooter ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.map-container {
    width: 100%;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

/* Whatsapp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}





/* ==================== RESPONSIVE MÓVIL ==================== */
@media (max-width: 768px) {
    /* NAVBAR */
    nav {
        width: 100%;
        padding: 12px 5%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .logoContainer {
        flex-shrink: 0;
    }
    
    .title span:first-child {
        font-size: 1rem;
    }
    
    .title span:last-child {
        font-size: 0.6rem;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    /* Ocultar menú desktop */
    .desktop-menu {
        display: none !important;
    }
    
    /* Mostrar menú móvil */
    .mobile-menu {
        display: flex !important;
    }
    
    /* MENÚ MÓVIL - CORREGIDO SIN DESBORDAMIENTO */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(135deg, #0D1B39 0%, #1a2d52 100%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    /* BARRA SUPERIOR FIJA */
    .mobile-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 20px;
        background: linear-gradient(135deg, #0D1B39 0%, #1a2d52 100%);
        border-bottom: 1px solid rgba(255,255,255,0.15);
        z-index: 10;
        box-sizing: border-box;
    }
    
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .mobile-logo img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .mobile-logo span {
        font-size: 1.2rem;
        font-weight: 700;
        color: white;
    }
    
    .mobile-close {
        cursor: pointer;
    }
    
    .mobile-close i {
        font-size: 1.3rem;
        color: white;
        background: var(--secondary);
        padding: 8px 12px;
        border-radius: 50%;
        transition: all 0.3s;
    }
    
    /* CONTENIDO DESPLAZABLE */
    .mobile-menu-content {
        width: 100%;
        padding: 15px 20px 30px;
        box-sizing: border-box;
    }
    
    /* Categorías */
    .mobile-category {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--secondary);
        margin-top: 15px;
        margin-bottom: 8px;
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }
    
    .mobile-category:first-of-type {
        margin-top: 0;
    }
    
    .mobile-menu li {
        width: 100%;
        list-style: none;
    }
    
    /* Items desplegables */
    .mobile-dropdown-item {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .mobile-dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
        padding: 10px 0 !important;
        color: white !important;
    }
    
    .mobile-dropdown-toggle i:first-child {
        width: 28px;
        margin-right: 10px;
    }
    
    .mobile-dropdown-toggle i:last-child {
        transition: transform 0.3s ease;
        font-size: 12px;
    }
    
    .mobile-dropdown-item.active .mobile-dropdown-toggle i:last-child {
        transform: rotate(180deg);
    }
    
    /* Submenú */
    .mobile-submenu {
        display: none;
        padding-left: 38px;
        margin: 5px 0 10px 0;
        list-style: none;
    }
    
    .mobile-dropdown-item.active .mobile-submenu {
        display: block;
    }
    
    .mobile-submenu li a {
        padding: 8px 0 !important;
        font-size: 0.9rem;
        color: rgba(255,255,255,0.8) !important;
        border-bottom: none;
    }
    
    .mobile-submenu li a i {
        width: 24px;
        font-size: 0.8rem;
    }
    
    /* Enlaces normales */
    .mobile-menu li a {
        color: white !important;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        padding: 10px 0;
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        transition: all 0.3s;
        box-sizing: border-box;
    }
    
    .mobile-menu li a i {
        width: 28px;
        font-size: 1rem;
        color: var(--secondary);
    }
    
    /* Divisor */
    .mobile-divider {
        height: 1px;
        background: rgba(255,255,255,0.15);
        margin: 15px 0;
        width: 100%;
    }
    
    /* Botón de teléfono */
    .mobile-phone {
        color: #ffcc00 !important;
        font-weight: bold !important;
    }
    
    .mobile-phone i {
        color: #ffcc00 !important;
    }
    
    /* Botón de aplicar */
    .mobile-btn {
        background-color: var(--secondary) !important;
        text-align: center;
        justify-content: center !important;
        margin: 10px 0;
        border-radius: 40px;
        padding: 12px !important;
        font-weight: bold !important;
    }
    
    .mobile-btn i {
        color: white !important;
    }
    
    /* Top bar oculto */
    .top-bar-custom {
        display: none;
    }
    
    /* Slider */
    .slider-container {
        height: 350px;
    }
    
    .slideTitle {
        font-size: 1.3rem;
    }
    
    .sliderContent p {
        font-size: 0.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    /* CORREGIR DESBORDAMIENTO DE MEGA MENÚ EN MÓVIL */
    .mega-dropdown {
        display: none !important;
    }
    
    /* Asegurar que todo el contenido tenga overflow visible */
    body {
        overflow-x: hidden;
    }
    
    /* Contenedores que podrían desbordarse */
    .containerCards,
    .services-grid,
    .containerComment,
    .endFooter {
        overflow-x: hidden;
    }



    /* ===== CORREGIR COLORES AL HACER CLIC ===== */
    /* Eliminar fondo azul de selección en móvil */
    .mobile-menu li a {
        -webkit-tap-highlight-color: transparent !important;
        background: transparent !important;
    }

    /* Excepción para el botón de aplicar - mantener su fondo */
    .mobile-menu li a.mobile-btn {
        background-color: var(--secondary) !important;
        background: var(--secondary) !important;
    }

    /* Estado active (cuando se presiona) - mantener fondo oscuro para enlaces normales */
    .mobile-menu li a:active {
        background: rgba(43, 110, 165, 0.3) !important;
        color: white !important;
    }

    /* Para el botón de aplicar cuando se presiona */
    .mobile-menu li a.mobile-btn:active {
        background-color: #1e5a8a !important;
        background: #1e5a8a !important;
        opacity: 0.9;
    }

    /* Estado focus - mantener legible */
    .mobile-menu li a:focus {
        outline: none;
        background: transparent !important;
        color: white !important;
    }

    /* Para el botón de teléfono */
    .mobile-phone:active {
        background: rgba(255, 204, 0, 0.2) !important;
        color: #ffcc00 !important;
    }

    /* Para los toggles desplegables */
    .mobile-dropdown-toggle:active {
        background: rgba(43, 110, 165, 0.2) !important;
        color: white !important;
    }

    /* Asegurar que el botón de aplicar siempre tenga su fondo */
    .mobile-btn {
        background-color: var(--secondary) !important;
        text-align: center;
        justify-content: center !important;
        margin: 10px 0;
        border-radius: 40px;
        padding: 12px !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    .mobile-btn i {
        color: white !important;
    }

    /* Eliminar fondo azul de selección en todos los elementos del menú */
    .mobile-menu * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Mantener texto blanco en todo momento */
    .mobile-menu li a,
    .mobile-dropdown-toggle,
    .mobile-submenu li a {
        color: white !important;
    }

    /* Excepción para el botón de teléfono */
    .mobile-phone {
        color: #ffcc00 !important;
    }

}






/* Footer */



/* ==================== FOOTER MODERNO ==================== */
.footer-modern {
    background: linear-gradient(135deg, #0a1225 0%, #0D1B39 100%);
    color: #fff;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 5% 40px;
    display: grid;
    grid-template-columns:2fr 1fr 1fr 1.5fr 1.5fr;
    gap: 40px;
}

/* Logo y descripción */
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-brand .footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Columnas del footer */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-col ul li a i {
    width: 20px;
    font-size: 0.9rem;
    color: var(--secondary);
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

/* Lista de contacto */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.contact-list li i {
    color: var(--secondary);
    width: 18px;
    margin-top: 3px;
}

.contact-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-list li a:hover {
    color: white;
}

/* Barra inferior */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 5%;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Columna del mapa */
.footer-map h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-map h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--secondary);
}

.map-wrapper {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-address {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-top: 10px;
}

.map-address i {
    color: var(--secondary);
    margin-right: 6px;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 5% 30px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .map-wrapper iframe {
        height: 200px;
    }
}






/* Estilos específicos para páginas internas */
/* DESPUÉS (usa la variable) */
.hero-static {
    height: 500px;
    background: linear-gradient(135deg, rgba(13, 27, 57, 0.85), rgba(43, 110, 165, 0.75)), var(--hero-image, url('https://images.unsplash.com/photo-1501594907352-04cda38ebc29?w=1600&h=500&fit=crop'));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.hero-content {
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.btn-large {
    padding: 14px 40px;
    font-size: 1.1rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-large:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Tabs horizontales */
.tabs-container {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 80px;
    z-index: 99;
}

.tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 18px 30px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--secondary);
}

.tab-btn.active {
    color: var(--secondary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
}

/* Contenido de los tabs */
.tab-content {
    display: none;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

/* Tarjetas de información */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Listas de requisitos - Alineación inteligente */
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.requirements-list li i {
    color: var(--secondary);
    width: 20px;
    font-size: 0.9rem;
    flex-shrink: 0;
    /* La magia está en margin-top: 3px */
    margin-top: 3px;
}

.requirements-list li:last-child {
    border-bottom: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
}

.timeline-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-item p {
    color: #666;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 5%;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-section .btn-large {
    background: white;
    color: var(--primary);
    margin-top: 15px;
}

.cta-section .btn-large:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .tabs-wrapper {
        justify-content: flex-start;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}