/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary-blue: #162859;
    --primary-blue-light: #30478f;
    --accent-yellow: #ffca28;
    --accent-orange: #fe7816;
    --text-dark: #333;
    --text-light: #fff;
    --border-color: #dee2e6;
    --transition-default: all 0.3s ease;
    --box-shadow-default: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ===== TIPOGRAFÍA ===== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: #FFF;
    line-height: 1.5;
    padding-top: 100px;;
}

h1, h2, h3, h4, h5, .cat-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--primary-blue);
}

p {
    font-size: 16px;
    color: #000;
    text-align: left;
    line-height: 1.2;
}

/* ===== ELEMENTOS BASE ===== */
html {
    scroll-behavior: smooth;
    height: 100%;
}

input:focus, button:focus {
    outline: none;
}

a {
    text-decoration: none;
    transition: var(--transition-default);
}

a:hover {
    text-decoration: none;
    color: #000;
}

img.responsive {
    width: 100%;
}

iframe {
    width: 100%;
    height: 600px;
    background-color: #FFF;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header {
    position: relative;
    height: 100px;
    max-height: 100%;
}

.logo {
    z-index: 1030;
    top: 40px;
    left: 160px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

/* Menú principal */
.inline.internal-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.inline.internal-nav li {
    position: relative;
}

.inline.internal-nav li a {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--primary-blue);
    text-transform: inherit;
    padding: 10px 10px;
    display: block;
    transition: var(--transition-default);
}

/* Hover y estados activos */
.inline.internal-nav li:hover > a,
.inline.internal-nav li.current-menu-item > a,
.inline.internal-nav li.current-menu-ancestor > a,
.inline.internal-nav li.current-page-ancestor > a {
    color: var(--text-light);
    background-color: var(--primary-blue);
    
}

/* ===== SUBMENÚS ===== */
.internal-nav .sub-menu {
        position: absolute;
        top: 130%;
        left: 50%;
        transform: translateX(-50%) translateY(15px);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 3px solid var(--primary-blue);
        box-shadow: 0 10px 30px rgba(22, 40, 89, 0.15);
        border-radius: 0 0 12px 12px;
        min-width: 260px;
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        list-style: none;
    }

.internal-nav .sub-menu::before {
    content: '';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--primary-blue);
}

.internal-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.internal-nav .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    font-size: 0.92rem;
    border-radius: 6px;
    transition: var(--transition-default);
}

.internal-nav .sub-menu li a:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding-left: 20px;
}

/* Evitar que el submenú herede estilos del padre */
.inline.internal-nav li:hover .sub-menu li a {
    background-color: transparent;
    color: var(--text-dark);
}

/* ===== BOTÓN HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: #000;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.menu-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger-inner::before {
    transform: rotate(-90deg) translateX(-10px);
    opacity: 0;
}

.menu-toggle.is-active .hamburger-inner::after {
    transform: rotate(-90deg) translateX(10px);
}

/* Overlay del menú */
.main-navigation::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
/* ===== AJUSTE GLOBAL PARA HEADER FIJO ===== */

.main-header {
    position: fixed;
    top: 33px;
    left: 0;
    width: 100%;
    z-index: 9999;
    /* Color de fondo sólido con un toque de transparencia y desenfoque */
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Separa el header del body visualmente */
    transition: all 0.3s ease;
}



.main-navigation {
    display: flex;
    align-items: center;
}

/* Menú principal */
.inline.internal-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

/* ... (El resto de tus estilos de menú se mantienen igual) ... */

/* Asegúrate de que los submenús aparezcan correctamente con el header fijo */
.internal-nav .sub-menu {
    top: 100%; /* Ajustado para que pegue al borde del header */
    /* ... resto de tus estilos ... */
}
/* ===== SECCIÓN HERO ===== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-banner h1 {
    color: var(--text-light);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transform: translateY(0);
    will-change: transform;
    z-index: 1;
    opacity: 0.9;
}

.blue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 58, 128, 1) 0%, rgba(21, 101, 192, 1) 35%, rgba(21, 101, 192, 0.8) 50%, rgba(21, 101, 192, 0) 80%);
    z-index: 2;
}

.blue-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffffff08 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
}

.content-wrapper {
    position: relative;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    color: var(--text-light);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 35%;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
}

.description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-yellow);
    color: #0d47a1;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition-default);
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.3);
}

.cta-button:hover {
    background-color: var(--text-light);
    color: #0d47a1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ===== TARJETAS Y COMPONENTES ===== */
/* Tarjetas de categoría */
.cat-card-moderna {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cat-card-moderna:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(22, 40, 89, 0.12);
}

.cat-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.cat-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-card-moderna:hover .cat-image-wrapper img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 40, 89, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-card-moderna:hover .cat-overlay {
    opacity: 1;
}

.btn-ver-mas {
    padding: 10px 25px;
    background: #fff;
    color: var(--primary-blue);
    border-radius: 30px;
    font-weight: bold;
}

.cat-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cat-link-seo {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tarjetas de servicios */
.servicio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: var(--transition-default);
}

.servicio-imagen-container {
    position: relative;
    width: 100%;
    height: 387px;
    overflow: hidden;
}

.servicio-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.servicio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.servicio-titulo {
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-size: 24px;
    font-family: 'Heading Now Trial 64', sans-serif;
    text-align: left;
}

.servicio-contenido p {
    color: #fff;
    font-size: 16px;
    font-family: 'Calibri', sans-serif;
    line-height: 1.3;
}

.servicio-item:hover .servicio-imagen {
    transform: scale(1.05);
}

.servicio-item:hover .servicio-overlay {
    opacity: 1;
}

/* Tarjetas de posts */
.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.img-hover-effect {
    transition: transform 0.5s ease;
    object-fit: cover;
    height: 200px;
    width: 100%;
}

.post-card:hover .img-hover-effect {
    transform: scale(1.1);
}

.bbullet-link {
    color: #007bff;
    font-weight: 600;
    transition: color 0.2s;
}

.bbullet-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

/* ===== ICONOS SOCIALES ===== */
.social-icons-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons-container a {
    flex-shrink: 0;
    display: inline-block;
    background-repeat: no-repeat;
}

a.fb { background: url(../img/fb.png); width: 10px; height: 20px; }
a.ins { background: url(../img/ins.png); width: 19px; height: 20px; }
a.tw { background: url(../img/tw.png); width: 18px; height: 16px; }
a.fbb { background: url(../img/fbb.png); width: 10px; height: 20px; }
a.insb { background: url(../img/insb.png); width: 19px; height: 20px; }
a.twb { background: url(../img/twb.png); width: 18px; height: 16px; }

/* ===== BACKGROUNDS ===== */
.bg-nosotros {
    background: url(../img/bg-nosotros.jpg) no-repeat center center;
    background-size: cover;
    height: 477px;
    position: relative;
}

.bg-frase {
    background: url(../img/bg-frase.png) no-repeat center center;
    background-size: cover;
    min-height: 128px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-contacto {
    background: url(../img/bg-contacto.png) no-repeat center center;
    background-size: cover;
    height: 479px;
    position: relative;
}

.bg-footer {
    background-color: #2F2D46;
    height: 50px;
    width: 100%;
}

.bg-footer p,
.bg-footer a.ins {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    margin:0;
}

.bg-blue {
    background-color: var(--primary-blue);
}

.blues {
    background-color: var(--primary-blue) !important;
}
.card-title {
    text-transform: inherit;
}
/* Ajustes para la tarjeta de producto */
.custom-product-card {
    transition: transform 0.3s ease;
    border: 1px solid #eee !important;
}

.custom-product-card:hover {
    transform: translateY(-5px);
}

.custom-product-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Estilo de los botones */
.custom-product-card .btn-dark {
    background-color: #051c33 !important;
    border: none;
}

.custom-product-card .btn-outline-secondary {
    border-color: #e0e0e0;
    color: #333;
}

.custom-product-card .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #000;
}
/* --- TABS PREMIUM --- */
.category-tabs-premium .tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-item {
    text-decoration: none !important;
    color: #888;
    padding: 10px 20px;
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tab-item:hover {
    color: #001e42;
}

.tab-item.active {
    color: #001e42;
}

.tab-indicator {
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 3px;
    background: #001e42;
    transition: width 0.3s ease;
}

.tab-item.active .tab-indicator {
    width: 100%;
}

/* --- PRODUCT CARD PREMIUM --- */
.product-card-premium {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,30,66,0.08);
    border-color: #e0e0e0;
}

/* Efecto Imagen */
.img-wrapper {
    position: relative;
    padding: 30px;
    background: #fcfcfc;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-product {
    max-height: 180px;
    width: auto;
    transition: transform 0.6s ease;
}

.product-card-premium:hover .img-product {
    transform: scale(1.1);
}

/* Overlay en imagen */
.img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,30,66,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-premium:hover .img-overlay {
    opacity: 1;
}

.view-btn-overlay {
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Detalles */
.brand-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    color: #001e42;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
    text-transform: inherit;
}

.product-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Botón principal */
.main-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f8f9fa;
    color: #001e42;
    padding: 12px 20px;
    border-radius: 14px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.main-action-btn:hover {
    background: #001e42;
    color: #fff;
}

/* Loader Spinner */
.spinner-premium {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #001e42;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Asegúrate de que el selector sea .active */
.tab-item.active {
    color: #001e42 !important;
}

.tab-item.active .tab-indicator {
    width: 100% !important; /* Esto hace que el underline aparezca */
}

/* Estilo base del indicador para que pueda crecer */
.tab-indicator {
    position: absolute;
    bottom: -5px; /* Ajusta según tu diseño */
    left: 0;
    width: 0;
    height: 3px;
    background: #001e42;
    transition: width 0.3s ease;
}
.wp-block-frm-modal-content.show {
    z-index: 9999 !important;
}
/* ===== FORMULARIOS ===== */
fieldset {
    margin-bottom: 20px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
    border: 1px solid #ccc;
    padding: 12px 15px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    color: #070707;
    height: 30px !important;
    font-size: 14px;
    outline: none;
}

textarea {
    height: 80px !important;
    border: 1px solid #ccc !important;
    padding: 12px 15px;
    font-size: 14px !important;
    color: #070707;
    font-family: 'Inter', sans-serif;
    width: 100%;
    border-radius: 10px;
    outline: none;
}

label,
legend {
    font-family: 'Nexa', sans-serif;
    font-weight: normal;
    color: #fff;
    font-size: 20px;
}

/* Formulario contacto home */
#form_contacto-home .frm_button_submit {
    border: 0 !important;
    font-family: 'Inter', sans-serif;
    font-size: 16px !important;
    text-transform: uppercase !important;
    color: var(--text-light) !important;
    background-color: var(--primary-blue) !important;
    cursor: pointer;
    width: 90px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 0 !important;
    float: right !important;
    padding: 0 !important;
}

#form_contacto-home .frm_submit.frm_flex {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

/* Placeholders del formulario */
#form_contacto-home input::placeholder,
#form_contacto-home textarea::placeholder,
#form_contacto-home input::-webkit-input-placeholder,
#form_contacto-home textarea::-webkit-input-placeholder,
#form_contacto-home input:-moz-placeholder,
#form_contacto-home textarea:-moz-placeholder,
#form_contacto-home input::-moz-placeholder,
#form_contacto-home textarea::-moz-placeholder,
#form_contacto-home input:-ms-input-placeholder,
#form_contacto-home textarea:-ms-input-placeholder {
    font-family: 'Inter', sans-serif;
    color: var(--accent-orange) !important;
    font-size: 14px !important;
    font-style: normal !important;
}

/* ===== PAGINACIÓN ===== */
.custom-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 10px;
    align-items: center;
}

.custom-pagination ul li a,
.custom-pagination ul li span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition-default);
    background: #ffffff;
    color: #1565c0;
    box-shadow: var(--box-shadow-default);
    border: 1px solid #e0e0e0;
}

.custom-pagination ul li a:hover {
    background-color: #1565c0;
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(21, 101, 192, 0.2);
    border-color: #1565c0;
}

.custom-pagination ul li span.current {
    background: #1565c0;
    color: var(--text-light);
    border-color: #1565c0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.custom-pagination ul li a.prev,
.custom-pagination ul li a.next {
    background-color: #f8f9fa;
    font-size: 1.2rem;
}

.custom-pagination ul li a.prev:hover,
.custom-pagination ul li a.next:hover {
    background-color: var(--accent-yellow);
    color: #0d47a1;
    border-color: var(--accent-yellow);
}

/* Paginación WordPress */
.pagination {
    list-style: none;
    display: flex;
    gap: 10px;
}

.pagination li a,
.pagination li span {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
}

.pagination li span.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* ===== CARRUSELES ===== */
.owl-carousel-container {
    position: relative;
    max-width: 546px;
}

.owl-carousel {
    width: 100%;
}

.owl-carousel .item {
    height: 729px;
    overflow: hidden;
}

.owl-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.owl-carousel .owl-nav {
    display: none;
}

.custom-owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.custom-owl-nav button {
    pointer-events: all;
    width: 26px;
    height: 25px;
    border: none;
    cursor: pointer;
}

.custom-owl-nav .custom-prev {
    margin-left: 30px;
    background: url(../img/left.png) no-repeat;
}

.custom-owl-nav .custom-next {
    margin-right: 30px;
    background: url(../img/right.png) no-repeat;
}

/* Carrusel secundario */
.owl-carousel.secundario {
    height: 150px;
    display: flex;
    align-items: center;
}

.owl-carousel.secundario .item {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-carousel.secundario .item img.logo-carousel {
    height: 80%;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    margin: 0 auto;
}

/* ===== PÁGINA 404 ===== */
.error-404-container {
    background: radial-gradient(circle at top right, rgba(13, 110, 253, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.icon-error i {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.error-404-container .search-form {
    display: flex;
    gap: 10px;
}

.error-404-container .search-field {
    border-radius: 30px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    width: 100%;
}

.error-404-container .search-submit {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    transition: 0.3s;
}

.error-404-container .search-submit:hover {
    background: #000;
}

/* ===== CONTACTO Y MAPA ===== */
.contact-hero {
    min-height: 350px;
    display: flex;
    align-items: center;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}

.icon-box i {
    font-size: 1.2rem;
}

.map-section iframe {
    transition: filter 0.5s ease;
}

.map-section:hover iframe {
    filter: none !important;
}

.map-overlay-text {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* ===== FOOTER ===== */
#footer {
    padding: 0;
}

p.direccion,
p.direccion a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #FFF;
    line-height: 1.5;
}

p.foot {
    text-align: center !important;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: #FFF;
    font-weight: normal;
    margin: 0;
}

/* ===== UTILIDADES ===== */
.rline {
    border-right: 1px solid #3f6ea9;
}

.h100 {
    height: 120px;
}

.cursor-pointer {
    cursor: pointer;
    transition: 0.3s;
}

.cursor-pointer:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.img-principal img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.card-relacionado {
    transition: transform 0.3s ease;
}

.card-relacionado:hover {
    transform: translateY(-10px);
}

.card-relacionado img {
    height: 200px;
    object-fit: cover;
}

.linea-decorativa {
    width: 60px;
    height: 4px;
    background-color: #0d6efd;
    margin-top: 10px;
}

a.verde:hover {
    background-color: #075E54;
    color: #fff;
}
/* Contenedor principal de Tabs */
.product-tabs-container {
    margin-top: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Sombra ligera para dar profundidad */
}

/* Estilo base de los botones (Links) */
.product-tabs-container .nav-tabs .nav-link {
    color: #444; /* Color de texto neutro para pestañas inactivas */
    background-color: #fcfcfc;
    border: 1px solid #dee2e6;
    border-radius: 0;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease; /* Suaviza el cambio de color */
    position: relative;
    border-bottom: 3px solid transparent; /* Espacio para el efecto de color */
}

/* Efecto HOVER (Al pasar el mouse) */
.product-tabs-container .nav-tabs .nav-link:hover {
    color: #162859 !important;
    background-color: #f0f4f8;
    border-bottom: 3px solid #cbd5e0; /* Un gris azulado suave al pasar el mouse */
}

/* Estado ACTIVO (La pestaña seleccionada) */
.product-tabs-container .nav-tabs .nav-link.active {
    color: #fff !important; /* Texto blanco para resaltar sobre el azul */
    background-color: #162859 !important; /* El azul que solicitaste */
    border-color: #162859;
    border-bottom: 3px solid #00a8ff; /* Un acento celeste brillante para destacar */
}

/* Contenido de los Tabs */
.product-tabs-container .tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 30px;
    background: #fff;
}

/* Mejora para las listas dentro del contenido (usualmente vienen de ACF) */
.product-tabs-container .tab-pane ul {
    list-style: none;
    padding-left: 0;
}

.product-tabs-container .tab-pane li {
    position: relative;
    padding-left: 25px;
    
}

/* Bullet personalizado con tu color azul */
.product-tabs-container .tab-pane li::before {
    content: "•";
    color: #162859;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
    font-size: 1.2rem;
}
/* ===== MÁRGENES ===== */
.mt-6 { margin-top: 3.5rem; }
.mt-7 { margin-top: 4rem; }
.mt-8 { margin-top: 4.5rem; }
.mt-9 { margin-top: 5rem; }
.mt-10 { margin-top: 5.5rem; }
.mb-6 { margin-bottom: 3.5rem; }
.mb-7 { margin-bottom: 4rem; }
.mb-8 { margin-bottom: 4.5rem; }
.mb-9 { margin-bottom: 5rem; }
.mb-10 { margin-bottom: 5.5rem; }
.my-6 { margin: 3.5rem 0; }
.my-7 { margin: 4rem 0; }
.my-8 { margin: 4.5rem 0; }
.my-9 { margin: 5rem 0; }
.my-10 { margin: 5.5rem 0; }

/* ===== GALLERIA ===== */
#galleria {
    height: 600px;
    width: 100%;
}

/* ===== ANIMACIONES ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1024px) {
    /* Ocultamos por defecto */
    #primary-menu, 
    .inline.internal-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        z-index: 2000;
        position: relative;
        margin-left: auto;
    }
    
    /* El contenedor del menú móvil */
    .inline.internal-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh; /* Cambiado a height para cubrir todo */
        background: var(--primary-blue-light);
        padding: 80px 0 20px; /* Más espacio arriba para que no tape el botón */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1500;
        overflow-y: auto; /* IMPORTANTE: Permite scroll si hay muchos productos */
      
    }
    .internal-nav li:hover > .sub-menu{
      transform: none;
    }
    .inline.internal-nav.active {
        right: 0;
        display: flex;
    }
    
    .inline.internal-nav li {
        width: 100%;
        text-align: center;
        position: relative;
        display: block; /* Asegura que ocupen su lugar */
    }
    
    .inline.internal-nav li a {
        padding: 15px 20px;
        width: 100%;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }

    /* === CORRECCIÓN DE SUBMENÚS === */
    
    /* Forzamos que el submenú se vea dentro de la lista */
    .inline.internal-nav .sub-menu {
        display: none; /* Escondido por defecto */
        visibility: visible;
        opacity: 1;
        position: relative; /* Para que empuje el contenido hacia abajo */
        left: 0;
        top: 0;
        width: 100%;
        background: #FFF; /* Fondo un poco más oscuro */
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* Cuando el padre tiene la clase 'open' (activada por JS) */
    .inline.internal-nav li.menu-item-has-children.open > .sub-menu {
        display: block !important;
    }

    .inline.internal-nav .sub-menu li a {
        padding: 10px 0;
        font-size: 0.9rem;
        background: transparent;
    }

    /* Flecha indicadora */
    .inline.internal-nav .menu-item-has-children > a::after {
        content: ' ▾';
        margin-left: 8px;
        transition: transform 0.3s;
    }

    .inline.internal-nav li.menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }
}


/* Móviles (hasta 767px) */
@media screen and (max-width: 767px) {
    .men, .menn {
        display: none !important;
    }
    
    .dropdown-menus {
        display: block;
        position: absolute;
        background-color: #3f6ea9;
        padding: 10px;
        top: 13px;
        left: 0;
        z-index: 99999;
        width: 100%;
    }
    
    .logos {
        text-align: center;
        display: block;
    }
    
    .bg-nosotros {
        height: 300px;
    }
    
    .bg-nosotros p {
        font-size: 14px;
    }
    
    .bg-contacto {
        height: 1160px;
    }
    
    .bg-footer {
        height: 100%;
        padding: 10px 0;
    }
    
    .logof {
        display: block;
        margin: 0 auto;
    }
    
    .servicio-imagen-container {
        height: 300px;
    }
    
    span.fras p {
        font-size: 20px;
    }
    
    span.somos,
    h1.servicios {
        font-size: 30px;
    }
    
    .owl-carousel.secundario .item img.logo-carousel {
        width: 200px;
    }
}

/* Tablets (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .servicio-imagen-container {
        height: 250px;
    }
    
    .servicio-contenido p {
        font-size: 12px;
    }
    
    .servicio-titulo {
        font-size: 14px;
    }
    
    .servicio-overlay {
        padding: 20px;
    }
    
    .bg-contacto {
        height: 100%;
    }
}

/* Desktop (1025px en adelante) */
@media screen and (min-width: 1025px) {
    /* Estilos específicos para desktop si son necesarios */
}

/* Responsive para hero */
@media screen and (max-width: 900px) {
    .content-wrapper {
        padding-right: 5%;
        align-items: center;
        text-align: center;
    }
    
    .blue-overlay {
        background: linear-gradient(0deg, rgba(10, 58, 128, 1) 0%, rgba(21, 101, 192, 0.9) 70%, rgba(21, 101, 192, 0.6) 100%);
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Responsive para paginación */
@media screen and (max-width: 480px) {
    .custom-pagination ul {
        gap: 5px;
    }
    
    .custom-pagination ul li a,
    .custom-pagination ul li span.current {
        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}