/* Estilos específicos para nuevo.html */

body {
    background: #f8f8f8;
}

.top-bar {
    background: #263238;
    color: #fff;
    font-size: 13px;
    padding: 4px 0;
}

.main-menu {
    background: #263238;
    padding: 0;
}

.main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    display: block;
    padding: 16px 32px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.main-menu .active,
.main-menu a:hover {
    background: #fd5054;
    color: #263238;
}

/* Estilos del menú hamburguesa */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(38, 50, 56, 0.98);
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(253,80,84,0.5);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 50px 0 0 0;
}

.mobile-menu li {
    margin: 0;
    border-bottom: 1px solid #455a64;
}

.mobile-menu > ul > li {
    margin: 15px 0;
}

.mobile-menu li:has(.mobile-submenu) {
    margin: 15px 0;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: block;
    padding: 15px 0;
    margin: 0;
}

.mobile-submenu {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(0,0,0,0.3);
    border-radius: 0;
    list-style: none;
}

.mobile-submenu.active {
    display: block !important;
}

.mobile-submenu li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    list-style: none;
}

.mobile-submenu a {
    font-size: 14px !important;
    color: #fd5054 !important;
    padding: 12px 20px !important;
    display: block !important;
    border-bottom: none !important;
    margin: 0 !important;
}

.mobile-submenu a:hover {
    color: #fff !important;
    background: rgba(253,80,84,0.2) !important;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(253,80,84,0.5);
    z-index: 9998;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Media Queries para Responsive Design */
@media (max-width: 1024px) {
    .main-menu ul {
        display: none !important;
    }
    
    .main-menu {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 50px;
    }
    
    .hamburger-menu {
        display: block !important;
    }
}

.header-contact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 0 10px 0;
    flex-wrap: wrap;
}

.header-logo {
    width: 260px;
}

.header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}

.header-info-block {
    background: #eaf6e2;
    color: #263238;
    border-radius: 6px;
    padding: 10px 18px;
    min-width: 210px;
    margin-bottom: 6px;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.header-info-block i {
    color: #fd5054;
    font-size: 1.5em;
    margin-top: 2px;
}

.header-info-block .fa-envelope {
    color: #2196f3;
}

.header-info-block .fa-phone {
    color: #388e3c;
}

.header-info-block .fa-map-marker {
    color: #fd5054;
}

.main-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-bottom: 4px solid #fd5054;
}

.main-title {
    background: #fff;
    text-align: center;
    padding: 24px 10px 10px 10px;
    font-size: 1.25em;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 2px solid #fd5054;
}

.main-title span {
    font-weight: 800;
    font-size: 1.2em;
}

.brands-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    background: #fff;
    padding: 30px 0 40px 0;
}

.brand-box {
    background: #fff;
    border: 4px solid #2196f3;
    border-radius: 8px;
    width: 200px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.brand-box img {
    max-width: 120px;
    max-height: 90px;
    margin-bottom: 10px;
}

.brand-box .brand-label {
    font-weight: 700;
    font-size: 1.1em;
    color: #263238;
    margin-top: 6px;
}

@media (max-width: 900px) {
    .brands-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand-box {
        width: 45%;
        min-width: 160px;
    }

    .header-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-info {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .brands-row {
        flex-direction: column;
        align-items: center;
    }

    .brand-box {
        width: 90%;
    }

    .header-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

.carousel-control-custom {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    color: #fd5054;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
    transition: background 0.2s;
    border: none;
    opacity: 1;
}

.carousel-control-custom.left {
    left: -24px;
}

.carousel-control-custom.right {
    right: -24px;
}

.carousel-control-custom svg {
    display: block;
    width: 32px;
    height: 32px;
    fill: #fd5054;
}

@media (max-width:600px) {
    .carousel-control-custom.left {
        left: 0;
    }

    .carousel-control-custom.right {
        right: 0;
    }
}

.submenu-parent {
    position: relative;
}

.submenu {
    display: none !important;
    position: absolute;
    background: #263238;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(253,80,84,0.3);
    z-index: 1000;
    top: 100%;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.submenu li a {
    color: #fff !important;
    padding: 12px 24px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #37474f;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: #fd5054 !important;
    color: #263238 !important;
}

/* Mostrar submenú al hacer hover en escritorio */
.submenu-parent:hover .submenu {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

/* Mostrar submenú cuando se activa con JavaScript */
.submenu.show {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

/* Clase para ocultar completamente el submenú */
.submenu.hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .submenu {
        position: static !important;
        box-shadow: none !important;
        min-width: 0 !important;
        display: none !important;
    }
    
    .submenu.show {
        display: block !important;
    }
    
    .submenu-parent:hover .submenu {
        display: none;
    }
}

/* Clases específicas para elementos */
.container-custom {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-contact-centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header-logo-centered {
    margin-bottom: 1px;
}

.header-logo-img {
    max-width: 250px;
    width: 90%;
    height: auto;
    display: block;
    margin: auto;
}

.header-info-centered {
    justify-content: center;
    align-items: center;
}

.header-info-block-inline {
    margin: 0 auto;
    display: inline-flex;
}

.header-info-block-spaced {
    margin: 20px auto;
    display: inline-flex;
}

.main-image-custom {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border: 4px solid #fd5054;
}

.brand-label-custom {
    margin-top: 42px;
}

.brand-label-custom-2 {
    margin-top: 22px;
}

.section-about {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    margin: 0;
    padding: 0;
}

.section-about-image {
    flex: 1 1 50%;
    min-width: 320px;
}

.section-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.section-about-content {
    flex: 1 1 50%;
    min-width: 320px;
    background: #314150;
    color: #fff;
    padding: 40px 40px 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-about-content-inner {
    max-width: 500px;
}

.section-about-title {
    font-weight: 800;
    font-size: 2em;
    margin-bottom: 12px;
    color: #fff;
}

.section-about-subtitle {
    font-size: 1.15em;
    margin-bottom: 18px;
}

.section-about-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 10px;
}

.section-about-item-last {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.section-about-text {
    font-size: 1em;
    line-height: 1.3;
}

.clients-section {
    background: #fff;
    padding: 36px 0 70px 0;
    margin-bottom: 0;
}

.clients-container {
    max-width: 1200px;
    margin: 0 auto;
}

.clients-divider {
    border: 0;
    border-top: 2px solid #eee;
    margin-bottom: 18px;
}

.clients-title {
    font-weight: 700;
    font-size: 1.2em;
    color: #444;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.clients-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.clients-carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.clients-logo {
    height: 38px;
    width: auto;
}

/* Estilos para submenú específicos */
.submenu-link {
    color: #fff !important;
    padding: 12px 24px !important;
    display: block !important;
}

/* Estilos para colores específicos en el header */
.email-link {
    color: #2196f3 !important;
}

.phone-number {
    color: #388e3c !important;
}

.website-text {
    color: #2196f3 !important;
}

/* Estilo para el ícono de LinkedIn */
.linkedin-icon {
    font-size: 1.5em !important;
}

/* Estilos específicos para eliminar espacios en submenú móvil */
.mobile-menu li:has(.mobile-submenu) {
    margin: 0;
    padding: 0;
}

.mobile-submenu li:first-child {
    margin-top: 0;
    padding-top: 0;
}

.mobile-submenu li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Fuerza eliminación completa de espacios en submenú móvil */
.mobile-menu li:has(.mobile-submenu) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.mobile-menu .mobile-submenu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.mobile-menu .mobile-submenu li:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.mobile-menu .mobile-submenu li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* CSS super específico para eliminar espacios del submenú móvil */
#mobile-menu #productos-submenu {
    display: none;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0,0,0,0.3);
    list-style: none !important;
    min-height: auto !important;
    height: auto !important;
    position: relative;
    width: 100%;
}

#mobile-menu #productos-submenu.active {
    display: block !important;
}

#mobile-menu #productos-submenu li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    list-style: none !important;
    display: block !important;
    width: 100%;
}

#mobile-menu #productos-submenu li a {
    color: #fd5054 !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    display: block !important;
    text-decoration: none !important;
    border: none !important;
    width: 100%;
    box-sizing: border-box;
}

#mobile-menu #productos-submenu li a:hover {
    color: #fff !important;
    background: rgba(253,80,84,0.2) !important;
}
