.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.logo-link:hover {
    transform: scale(1.02);
}
.logo-container {
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.logo-img {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}
.empresas-menu-container {
    background: #ffffff;
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
}
.empresas-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.empresas-menu li {
    margin: 0 15px;
    position: relative;
}
.empresas-menu li a {
    color: #111111;
    font-weight: normal;
    padding: 15px 0;
    display: block;
    text-decoration: none;
    background: none;
    background-color: transparent;
    box-shadow: none;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
    letter-spacing: 0.3px;
}
.empresas-menu li a:hover {
    color: #000000;
    transform: translateY(-2px);
}
.empresas-menu li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #111111;
    transition: width 0.3s ease;
}
.empresas-menu li a:hover:after {
    width: 100%;
}
.empresas-menu li a.active {
    font-weight: bold;
    color: #111111;
    position: relative;
}
.empresas-menu li a.active:after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 2px !important; /* Ligeramente más delgada */
    bottom: 0 !important;
    left: 0 !important;
    background-color: #111111 !important;
    border: none !important;
    border-bottom: none !important;
    display: block !important;
    z-index: 999 !important;
}
.empresas-menu li a.active {
    border-bottom: none !important;
    font-weight: bold !important;
    color: #111111 !important;
}

/* Menú sticky */
.empresas-menu-container.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Estilos para el botón de menú móvil */
.menu-toggle {
    display: none;
    background: rgba(13,60,97,0.08);
    border: none;
    color: #1488e1;
    font-size: 22px;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(13,60,97,0.15);
    transform: scale(1.05);
}

/* Estilos para el footer */
.empresas-footer {
    background: #2e6bdd;
    color: #F5F5F5;
    padding: 30px 0 0;
    margin-top: auto;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid #0A2351;
    position: relative;
    overflow: hidden;
    display: block !important;
    position: relative !important;
    z-index: 99 !important;
    margin-top: 30px !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    clear: both !important;
    overflow: visible !important;
}

.light-effect {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,35,81,0.1) 0%, rgba(255,255,255,0) 70%);
    filter: blur(30px);
    z-index: 1;
}

.empresas-footer h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #065084;
}

.footer-container {
    position: relative;
    z-index: 5;
}
.footer-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 12px;
    color: #FFFFFF; /* Blanco puro */
}
.footer-logo {
    position: relative;
    margin-bottom: 20px;
    padding: 15px;
    text-align: center;
    background: rgba(10,35,81,0.02);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: -40px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}

.footer-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 10px;
    border-left: 3px solid #0A2351;
    margin-top: -30px;
}

.footer-heading {
    color: #F5F5F5;
    margin-bottom: 15px;
    border-bottom: 2px solid #f3f3f5;
    padding-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
}

.footer-contact-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-icon {
    color: #F5F5F5;
    margin-right: 10px;
    font-size: 16px;
    margin-top: 3px;
}

.footer-social-heading {
    font-size: 14px;
    margin-bottom: 12px;
    color: #F5F5F5;
    font-weight: bold;
}

.footer-copyright {
    border-top: 1px solid rgba(250, 247, 247, 0.1);
    text-align: center;
    font-size: 14px;
    padding-top: 15px;
    margin-top: 20px;
}

.empresas-footer-link {
    color: #F5F5F5;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.empresas-footer-link:hover {
    color: #F5F5F5;
    text-decoration: none;
}

.footer-icon {
    margin-right: 8px;
    color: #F5F5F5;
}

.quick-links-wrapper, .contact-wrapper {
    background-color: #0A2351;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(246, 244, 244, 0.05);
}

.text-highlight {
    color: #F5F5F5;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon-img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon-img:hover {
    transform: scale(1.2);
}

.main-logo {
    width: 150px;
    margin-top: -12px;
}

.empresas-footer .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.empresas-footer p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 10px;
    border-left: 3px solid #F5F5F5;
    margin-top: -30px;
}

.empresas-footer h5 {
    color: #F5F5F5;
    margin-bottom: 15px;
    border-bottom: 2px solid #f8f9fb;
    padding-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
}

.empresas-footer .list-unstyled li {
    margin-bottom: 10px;
}

.empresas-footer-link {
    color: #F5F5F5;
    text-decoration: none;
}

.empresas-footer-link:hover {
    color: #0799B6 !important;
}

.empresas-footer .social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.empresas-footer .social-icons img {
    width: 30px;
    height: auto;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
}

.social-icon.whatsapp {
    background-color: #25d366;
}

/* Ajuste para pantallas pequeñas - REFORZADO */
@media (max-width: 991px) {
    .empresas-menu {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: #ffffff !important;
        z-index: 1000 !important;
        padding: 10px 0 !important;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08) !important;
    }
    
    .empresas-menu.active {
        display: flex !important;
    }
    
    /* Asegurar que el indicador del menú activo sea correcto en móvil */
    .empresas-menu li a.active:after {
        height: 2px !important;
        bottom: 0 !important;
    }
    
    .empresas-menu li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .empresas-menu li a {
        padding: 10px 15px;
        width: 100%;
        display: block;
        color: #111111;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .empresas-menu-container {
        position: relative;
    }

    /* Compactación del header en móvil para ver más banner */
    .empresas-menu-container {
        min-height: 58px !important;
    }
    .logo-container {
        padding: 4px 0 !important;
    }
    .logo-img {
        width: 135px !important;
        height: auto;
    }
    .empresas-menu li a {
        padding: 8px 0 !important;
    }

    /* Portada de Empresas: evitar recorte del primer banner debajo de los menús */
    .empresas-content .carousel-container { 
        margin-top: 28px !important;
    }
}

/* Estilos para inicioempresa.phtml */
.empresas-content {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    flex: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.empresas-container {
    width: 100%;
    margin-top: 50px;
    padding: 0;
    overflow-x: hidden;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: block;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Quitar estilo de botón azul cuando el banner es un <a class="info-button"> */
.carousel-container .info-button {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

.carousel-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background-color: white;
    color: #38E54D;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #1A2A80;
    font-weight: 800;
    margin-top: 55px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0a4e7d, #0d6efd);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: #0D1164;
    line-height: 1.6;
    margin-top: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.features-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin-top: 40px;
}

.feature-item {
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
    border-radius: 12px;
}

.feature-item:hover {
    transform: scale(1.08) translateY(-5px);
    background-color: rgba(255,255,255,0.8);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-item:hover .feature-icon {
    box-shadow: 0 15px 30px rgba(229, 0, 125, 0.3);
    transform: translateY(-8px);
}

.feature-icon {
    background: linear-gradient(45deg, #e5007d, #ff005c);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(229, 0, 125, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(10px);
}

.feature-icon img {
    max-width: 95px;
    max-height: 95px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.feature-text {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Estilos para las tarjetas de información */
.info-section {
    text-align: center;
    font-family: Arial, sans-serif;
    margin-top: 35px;
}

.info-title {
    color: #ececee;
    font-weight: bold;
    margin-bottom: 15px;
}

.info-button {
    display: inline-flex;
    align-items: center;
    background-color: #00b5e2;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 181, 226, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.info-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
    transition: all 0.4s ease;
    z-index: -1;
}

.info-button:hover {
    background-color: #0099cc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 153, 204, 0.4);
}

.info-button:hover:before {
    left: 100%;
}

.info-button-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    margin-left: 10px;
    color: #000;
    font-size: 16px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 35px auto;
    justify-items: center;
}

.card-item {
    text-align: center;
    max-width: 450px;
    transition: all 0.4s ease;
    border-radius: 15px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.5s ease;
    transform: scale(0.98);
}

.card-item:hover .card-image {
    transform: scale(1);
}

.card-title {
    color: #0a0a60;
    font-weight: bold;
    margin: 20px 0 10px;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
}

/* Estilos para el formulario de contacto */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
    gap: 40px;
    flex-wrap: wrap;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    margin-top: 35px;
}

.contact-info {
    max-width: 350px;
    color: #eceef1;
}

.contact-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    color: #f9fafc;
}

.contact-subtitle {
    font-weight: 700;
    font-size: 18px;
    color: #fbfcfd;
    margin: 15px 0;
}

.contact-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    background-color: #00b4d8;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 25px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    gap: 10px;
}

.contact-link:hover {
    background-color: #0099b8;
    transform: translateY(-2px);
}

.contact-form {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.contact-form:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13,35,76,0.03) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #f5f7fa;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.form-control:focus {
    background: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
}

.form-button {
    background: linear-gradient(45deg, #00b4d8, #0077b6);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.form-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
    transition: all 0.4s ease;
}

.form-button:hover {
    background: linear-gradient(45deg, #0099b8, #006da8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.4);
}

.form-button:hover:before {
    left: 100%;
}

.social-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 350px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.social-title {
    font-weight: 800;
    color: #f1f1f2;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    background-color: #eaf7ff;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.02);
    background-color: #d9f0ff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    color: #0a4e7d;
}

.social-icon {
    width: 28px;
    height: 28px;
    margin-right: 15px;
}

.social-name {
    font-weight: 600;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    /* Evita el recorte del primer banner en la portada de Empresas */
    .empresas-content .carousel-container { 
        margin-top: 18px !important; 
    }
    /* Tipografías grandes más responsivas en la portada */
    .empresas-content p { 
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
    }
    .empresas-content .section-title { font-size: 28px !important; }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info, .contact-form, .social-card {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/* =============================
   Overrides fuertes del MENÚ
   ============================= */
/* Desktop: asegurar color visible */
.empresas-menu li a,
.empresas-menu li a:link,
.empresas-menu li a:visited {
    color: #111111 !important; /* negro */
}

.empresas-menu li a:hover {
    color: #000000 !important; /* negro al hover */
}

.empresas-menu li a.active,
.empresas-menu li a.active:link,
.empresas-menu li a.active:visited {
    color: #111111 !important;
}

/* Móvil: mismo color en el desplegable */
@media (max-width: 991px) {
    .empresas-menu li a,
    .empresas-menu li a:link,
    .empresas-menu li a:visited {
        color: #111111 !important;
    }
}
