/**
 * Theme Name: Tu Tema Limpio
 * Version: 3.0
 * Descripción: CSS base con tipografías de referencia y menú móvil optimizado
 */

/* =============================================================================
   1. TIPORAFÍAS - PLANTILLA DE REFERENCIA
   Copia y pega este bloque para cada nueva fuente que necesites
   ============================================================================= */
@font-face {
    font-family: 'NombreFuente';
    src: url('../fonts/NombreFuente-Regular.eot');
    src: url('../fonts/NombreFuente-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/NombreFuente-Regular.woff2') format('woff2'),
         url('../fonts/NombreFuente-Regular.woff') format('woff'),
         url('../fonts/NombreFuente-Regular.ttf') format('truetype'),
         url('../fonts/NombreFuente-Regular.svg#NombreFuente-Regular') format('svg');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* ✅ Mejora rendimiento: muestra texto mientras carga la fuente */
}

/* Ejemplo real (descomentar y editar cuando subas tus fuentes):
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2'),
         url('../fonts/Poppins-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
*/

/* =============================================================================
   2. VARIABLES CSS (Personaliza aquí colores, espaciados, etc.)
   ============================================================================= */
:root {
    /* Colores */
    --color-primary: #30478f;
    --color-accent: #fe7816;
    --color-text: #000;
    --color-text-light: #fff;
    --color-overlay: rgba(0, 0, 0, 0.5);
    
    /* Menú móvil */
    --menu-width: 100%;
    --menu-bg: var(--color-primary);
    --menu-link-color: var(--color-text-light);
    --menu-link-hover-bg: var(--color-text-light);
    --menu-link-hover-color: var(--color-primary);
    --menu-padding-y: 10px;
    --menu-padding-x: 0;
    
    /* Hamburguesa */
    --hamburger-size: 30px;
    --hamburger-line-height: 3px;
    --hamburger-color: var(--color-text);
    --hamburger-spacing: 10px;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* =============================================================================
   3. BASE RESET & UTILIDADES ESENCIALES
   ============================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    background: #fff;
    overflow-x: hidden; /* Evita scroll horizontal por menú */
}

/* Accesibilidad: Skip link (oculto hasta que recibe foco) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}
.skip-link:focus {
    top: 0;
}

/* Imágenes responsive por defecto */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a { text-decoration: none; }
p { font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.3; color: #000}
/* =============================================================================
   4. MENÚ HAMBURGUESA - OPTIMIZADO (Móvil + Tablet)
   ============================================================================= */

/* --- Botón hamburguesa (oculto en desktop) --- */
.menu-toggle {
    display: none; /* Visible solo en media queries móviles */
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: var(--hamburger-size);
    height: calc(var(--hamburger-size) + var(--hamburger-spacing) * 2);
}

/* Icono hamburguesa con CSS puro (sin imágenes) */
.hamburger-box {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    display: block;
    width: var(--hamburger-size);
    height: var(--hamburger-line-height);
    background: var(--hamburger-color);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-fast);
}

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

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

.hamburger-inner::before {
    top: calc(-1 * var(--hamburger-spacing));
}

.hamburger-inner::after {
    bottom: calc(-1 * var(--hamburger-spacing));
}

/* Animación a X cuando está activo */
.menu-toggle.is-active .hamburger-inner {
    background: transparent;
}
.menu-toggle.is-active .hamburger-inner::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle.is-active .hamburger-inner::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* --- Overlay oscuro (fondo semi-transparente) --- */
.main-navigation::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 998;
    pointer-events: none;
}

.main-navigation.menu-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Menú móvil desplegable (Dropdown) --- */
#primary-menu,
.main-navigation .inline.internal-nav {
    display: none;
}

@media (max-width: 1279px) {
    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Contenedor del menú desplegable debajo del header */
    .menu-container-wrapper {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        max-width: 320px;
        background: #2a4380; /* Tu color azul corporativo */
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
    }

    /* Clase activa que añade el JS */
    .menu-container-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Estilo de los enlaces */
    .internal-nav {
        list-style: none;
        margin: 0;
        padding: 10px 0;
    }

    .internal-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .internal-nav li a {
        display: block;
        padding: 12px 20px;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
    }

    /* Submenús */
    .internal-nav .sub-menu {
        display: none;
        background: rgba(0,0,0,0.1);
        padding-left: 15px;
    }
    
    .internal-nav .sub-menu.open {
        display: block !important;
    }

    /* Indicador visual */
    .menu-item-has-children > a::after {
        content: ' +';
        font-weight: bold;
        float: right;
    }
@media (max-width: 1279px) {
    /* Forzamos el contenedor del menú a bloque vertical */
    .menu-container-wrapper .inline.internal-nav {
        display: block !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Forzamos cada ítem de la lista a ocupar el 100% del ancho */
    .menu-container-wrapper .inline.internal-nav li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    /* Ajustamos los enlaces */
    .menu-container-wrapper .inline.internal-nav li a {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}
@media (max-width: 1279px) {
    /* Fondo del contenedor y estilo del dropdown móvil */
    .menu-container-wrapper {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        max-width: 300px;
        background: #ffffff; /* Fondo blanco como en escritorio */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra suave */
        border-radius: 0 0 4px 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
        padding: 10px 0;
    }

    .menu-container-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Estilo de los enlaces principales en móvil */
    .menu-container-wrapper .internal-nav li a {
        display: block !important;
        padding: 12px 20px !important;
        color: #333333 !important; /* Color de texto oscuro */
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Submenú: Estilo idéntico al de escritorio */
    .menu-container-wrapper .internal-nav .sub-menu {
        display: none;
        background: #ffffff; /* Fondo blanco */
        padding: 5px 0 5px 20px;
    }
    
    .menu-container-wrapper .internal-nav .sub-menu.open {
        display: block !important;
    }

    /* Ajuste para sub-enlaces */
    .menu-container-wrapper .internal-nav .sub-menu li a {
        font-size: 14px;
        color: #666666 !important;
    }
}
}

/* =============================================================================
   5. MEDIA QUERIES ESPECÍFICAS (Opcional: ajusta breakpoints si lo necesitas)
   ============================================================================= */

/* Móviles pequeños (0 - 374px) */
@media (max-width: 374px) {
    :root {
        --menu-width: 100%;
    }
    .inline.internal-nav li a {
        font-size: 16px;
    }
}

/* Tablets en vertical (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    :root {
        --menu-width: 70%;
    }
}

/* =============================================================================
   6. UTILIDADES DE ACCESIBILIDAD (Recomendado mantener)
   ============================================================================= */
/* Elementos visibles solo para lectores de pantalla */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para navegación con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
/* =============================================================================
   8. FORMULARIOS - ESTILOS GENÉRICOS (HTML5 + Accesibilidad)
   Estos estilos aplican a CUALQUIER formulario, sin depender de plugins
   ============================================================================= */

/* Contenedor base de formularios */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 100%;
}

/* Campos de entrada */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit; /* Hereda la tipografía del tema */
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Focus accesible (nunca quitar outline sin reemplazar) */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(254, 120, 22, 0.15);
}

/* Placeholder con contraste adecuado */
::placeholder {
    color: #666;
    opacity: 1; /* Firefox necesita esto */
}

/* Labels */
label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

/* Checkbox y radio */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Botones de submit genéricos */
button[type="submit"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    background: #e56a0f; /* Un tono más oscuro del accent */
}

button[type="submit"]:active,
input[type="submit"]:active {
    transform: translateY(1px);
}

/* Estados de validación HTML5 */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Mensajes de error (genéricos, para que los plugins los usen) */
.form-error,
.error-message,
[role="alert"] {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive: campos en columna en móvil */
@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}
/* =============================================================================
   7. [NUEVA SECCIÓN] Página: Contacto
   ============================================================================= */
/* Solo añade aquí lo específico de esta página, con prefijo para evitar conflictos */
.main-navigation .inline.internal-nav {
    display: flex !important; /* Asegura visibilidad en pantallas grandes */
}
button .menu-close{
    display: none !important; /* Oculta el botón cerrar en desktop */
}
.header {
    position:relative;
    z-index: 1000;
}
ul#primary-menu {
    list-style: none;
    padding: 40px 0;
    margin: 0;
}
ul#primary-menu li{
    padding: 0 8px;
}
ul#primary-menu li a {
    position: relative;
    padding-bottom: 5px; /* Espacio para que la línea no toque la letra */
    transition: color 0.3s ease;
    color:#222;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}
body.translatepress-fr_FR ul#primary-menu li a {
    font-size: 12px;
}
ul#primary-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff242a;
    transition: width 0.3s ease; /* La animación del subrayado */
}

ul#primary-menu li a:hover {
    color: #ff242a;
    text-decoration: none; /* Quitamos el subrayado por defecto */
}

ul#primary-menu li a:hover::after {
    width: 100%; /* El subrayado crece al 100% al hacer hover */
}
/* --- Ajustes para el Dropdown con tus clases originales --- */

/* Aseguramos que el contenedor padre tenga posicionamiento */
.main-navigation ul.inline.internal-nav > li {
    position: relative;
}

/* Estilo del submenú */
.main-navigation ul.inline.internal-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 260px; /* Ancho ajustado para que quepa "RAMPA LABIO TELESCÓPICO" */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Curva de animación más fluida */
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-top: 3px solid #ff242a; /* Tu color de marca */
    z-index: 9999;
}

/* Efecto al pasar el mouse */
.main-navigation ul.inline.internal-nav > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilo de los enlaces dentro del submenú */
.main-navigation ul.inline.internal-nav .sub-menu li a {
    padding: 12px 20px;
    font-size: 13px;
    color: #333;
    text-transform: none; /* Mejor legibilidad en el submenú */
    font-weight: 500;
    display: block;
    transition: all 0.2s ease;
}

.main-navigation ul.inline.internal-nav .sub-menu li a:hover {
    background: #fdf2f2; /* Un tono muy suave de tu rojo */
    color: #ff242a;
    padding-left: 25px;
}
.bg-nosotros {
    background-image: url('../img/mapa.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    padding:100px 0;
}
.separador-bering {
    width: 40%;       /* O ajusta a un ancho fijo, ej: 800px */
    max-width: 1000px; /* Máximo ancho del separador */
    height: 2px;       /* Grosor de la línea */
    margin: 20px auto; /* Centrado vertical y horizontal */
    
    /* La magia: 3 franjas de color */
    background: linear-gradient(
        to right, 
        #cccccc 0%,   /* Gris inicial */
        #cccccc 35%,  /* Gris hasta el punto donde inicia el rojo */
        #ff242a 35%,  /* Inicio del rojo */
        #ff242a 65%,  /* Fin del rojo */
        #cccccc 65%,  /* Gris desde el fin del rojo */
        #cccccc 100%  /* Gris final */
    );
}
h2.ofrecemos {
    font-size: 22px;
    font-weight: 500;
    color: #ec3338;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}
h2.dist {
    color:#000;
    font-weight: 300;
    font-size: 40px;
    font-family: 'Montserrat', sans-serif;
    padding: 20px 0 40px 0;
    text-align: center;
}
p.nosotros {
    color:#000;
    font-weight: 300;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}
/* 1. Forzamos que todas las tarjetas tengan la misma altura */
.bering-card {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centrado horizontal */
    justify-content: flex-start; /* Alineamos contenido al inicio */
    background: #fff;
    padding: 30px;
    height: 250px;            /* Fija una altura exacta para todas */
    width: 100%;              /* Que ocupen todo el ancho de su columna col-md-4 */
    border-radius: 15px;
    text-decoration: none !important;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    margin:0;
}

/* 2. Contenedor del icono: Fuerza el centrado vertical y espacio uniforme */
.card-image {
    height: 110px;            /* Espacio fijo para el icono */
    display: flex;            /* Flexbox para centrar dentro del espacio */
    align-items: center;      /* Centrado vertical */
    justify-content: center;  /* Centrado horizontal */
    margin-bottom: 20px;
}

.card-image img {
    max-width: 100px;         /* Tamaño máximo del icono */
    max-height: 100px;        /* Asegura que no se deforme */
    object-fit: contain;      /* Mantiene proporción */
}

/* 3. Título alineado al fondo del área de texto */
.card-title {
    margin-top: auto;         /* Empuja el título hacia abajo si es necesario */
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    margin:0;
    word-wrap: break-word;
    width: 200px;
}
/* Efecto Hover Moderno */
.bering-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 36, 42, 0.2);
    border-color: #ff242a;
}
.bering-card:hover .card-title {
    color: #ff242a;
}
.bg-muelles {
    background-image: url('../img/bg-muelles.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
}
/* --- OWL CAROUSEL MUELLES (Optimizado) --- */

.bering-product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding-bottom: 20px; /* Espacio extra para el efecto hover */
}

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

/* Fondo con imagen */
.bering-card-bg {
    height: 290px; 
    background-size: cover;
    background-position: center;
    position: relative; /* Necesario para que el icono se posicione sobre esto */
}

/* Contenedor circular del icono */
.bering-icon-wrapper {
    position: absolute;
    top: 250px; /* Posiciona el círculo justo en el borde inferior de la imagen */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bering-card-icon {
    width: 50px; 
    height: auto;
}
.bering-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.bering-card-icon-container {
    width: 80px;
    height: 80px;
    background-color: #f4f4f4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff242a; /* Color de tu marca */
    font-size: 35px;
    transition: 0.3s;
    padding: 10px;
}

/* Efecto al pasar el mouse */
.bering-card-icon-container:hover {
    
}
/* Franja roja inferior */
.bering-card-footer {
    background-color: #ff242a;
    padding: 50px 20px 30px 20px; /* El padding-top de 40px deja espacio para el icono */
    text-align: center;
    color: #fff;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.bering-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

/*fin owl*/
h2.titus {
    font-size: 35px;
    font-weight: 300;
    color: #fff;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    
    /* Necesario para posicionar el subrayado */
    position: relative; 
    padding-bottom: 15px; /* Espacio entre el texto y la línea */
}

h2.titus::after {
    content: ""; /* Obligatorio para pseudo-elementos */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 125px; /* Ancho de la línea (ajústalo a tu gusto) */
    height: 3px; /* Grosor de la línea */
    background-color: #ff242a; /* Color rojo (Bering) */
}
.redline {
    border-top: 4px solid #ec3338; /* Línea roja */
    width: 100%; /* Ocupa todo el ancho del contenedor */
}
.bg-accesorios {
    background-color:#fff;
    padding: 80px 0;
}
.bg-accesorioss {
    padding:20px 0;
    background-color:#fff;
}
h2.titusb {
    font-size: 35px;
    font-weight: 300;
    color: #000;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    
    /* Necesario para posicionar el subrayado */
    position: relative; 
    padding-bottom: 15px; /* Espacio entre el texto y la línea */
}

h2.titusb::after {
    content: ""; /* Obligatorio para pseudo-elementos */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 125px; /* Ancho de la línea (ajústalo a tu gusto) */
    height: 3px; /* Grosor de la línea */
    background-color: #ff242a; /* Color rojo (Bering) */
}
.bg-puertas {
    background-image: url('../img/puertas-industriales.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
}
h2.distb {
    color:#000;
    font-weight: 400;
    font-size: 40px;
    font-family: 'Montserrat', sans-serif;
    padding: 20px 0 10px 0;
    text-align: center;
}
p.nosotrosb {
    color:#000;
    font-weight: 400;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}
/* --- CONTENEDOR FLEXIBLE --- */
.bering-process-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

/* LÍNEA ROJA CON DEGRADADOS EN AMBOS EXTREMOS */
.bering-process-container::before {
    content: "";
    position: absolute;
    top: 55px; /* Centrado respecto a los 80px del icono */
    left: 0;   /* Cubre todo el ancho del contenedor */
    right: 0;
    height: 4px;
    z-index: 0;
    /* Degradado que desvanece a transparente en los extremos */
    background: linear-gradient(
        to right, 
        transparent 0%, 
        #ff242a 10%, 
        #ff242a 90%, 
        transparent 100%
    );
}

/* PASOS: Cada columna tiene su espacio y centra su contenido */
.bering-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1; 
    padding: 0 10px;
}

/* ICONO: Tamaño fijo, siempre centrado */
.bering-icon {
    background: #fff;
    border: 4px solid #ff242a;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff242a;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    z-index: 2; /* Crucial: el icono debe estar encima de la línea */
}

/* HOVER: Mantenemos el efecto original intacto */
.bering-step:hover .bering-icon {
    transform: scale(1.2);
    background: #ff242a; /* Fondo rojo al pasar el mouse */
    color: #fff;        /* Icono blanco al pasar el mouse */
    box-shadow: 0 0 15px rgba(255, 36, 42, 0.5);
}

/* TEXTO: Se ajusta debajo sin mover el icono */
.bering-step h3 {
    margin: 0 0 10px 0;
    text-align: center;
    color:#000;
    font-weight: 500;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.bering-step p {
    text-align: center;
    margin: 0;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    color:#000;
}
/*fin steps*/
.bering-button {
    display: inline-block;
    background-color: #ff242a; /* Tu color rojo Bering */
    color: #fff;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px; /* Borde redondeado (tipo cápsula) */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 36, 42, 0.3);
    border: 2px solid #ff242a;
    cursor: pointer;
    text-align: center;
}

/* Efecto Hover: Zoom y cambio de estilo */
.bering-button:hover {
    transform: translateY(-5px) scale(1.05); /* Elevación y ligero zoom */
    box-shadow: 0 10px 20px rgba(255, 36, 42, 0.5); /* Sombra más pronunciada */
    background-color: #fff; /* Se vuelve blanco por dentro */
    color: #ff242a; /* El texto se vuelve rojo */
}
.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between; /* Esto empuja uno a la izquierda y otro a la derecha */
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap; /* Asegura que en móviles se acomoden uno debajo del otro */
    gap: 10px;
}

.bg-footer {
    background-color: #ff242a; /* El color rojo que vienes usando */
    color: #fff;
    padding: 10px 0;
    
    /* Forma redondeada solo en las esquinas superiores */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    
    /* Asegura que no se desborde el contenido */
    overflow: hidden; 
    margin-top: 0px; /* Separación respecto al contenido de arriba */
}

/* Ajustes para el texto dentro del footer */
.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.legal {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif; /* Mantiene la tipografía de tu proyecto */
    color:#fff;
}

a.legal {
    color: #fff !important;
    text-decoration: none;
    font-weight: 400;
}
a.legal:hover {
    text-decoration: underline;
}

/* Ajuste para móviles */
@media (max-width: 767px) {
    .footer-bottom-wrapper {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}
.bering-button-all {
    display: inline-flex;
    align-items: center;
    background-color: #ff242a;
    color: #fff;
    padding: 12px 25px 12px 35px; /* Más espacio a la izquierda para el texto */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    gap: 20px; /* Espacio entre el texto y el círculo */
}

/* El círculo con la flecha */
.bering-button-all .icon {
    background-color: rgba(255, 255, 255, 0.2); /* Un rojo ligeramente más oscuro al interior */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* EFECTO HOVER */
.bering-button-all:hover {
    background-color: #e01e24; /* Un tono un poco más oscuro al pasar el mouse */
    transform: scale(1.05);
}

.bering-button-all:hover .icon {
    background-color: #fff;
    color: #ff242a; /* La flecha se vuelve roja */
}

.bering-quienes-somos {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.bering-quienes-somos { padding: 20px 0; background: #fff; color: #444; }

/* Títulos */
.qs-main-title { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.qs-main-title span { color: #ff242a; }

/* Caja de Misión */
.mission-box { 
    background: #f8f8f8; padding: 20px; border-left: 5px solid #ff242a; 
    margin: 30px 0; font-size: 1.1rem;
}

/* Tarjetas modernas */
.card-modern { 
    padding: 30px; background: #fff; border: 1px solid #eee; 
    transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.card-modern:hover { transform: translateY(-5px); }

/* Caja trayectoria */
.qs-trayectoria { margin-top: 50px; }
.inner-box h3 { color: #000; margin-bottom: 20px; }
.qs-hero { padding: 30px 0; background: #fff; }
.card-modern img { border-radius: 10px; width: 100%; height: 250px; object-fit: cover; }
.inner-box { 
    background-size: cover; 
    background-position: center; 
    position: relative;
    /* Si usas una imagen de fondo, añade un overlay oscuro */
    
}
/*category estilos*/
.bering-archive-container { font-family: 'Montserrat', sans-serif; padding: 0px 0; }

/* Título */
.category-title { font-weight: 800; font-size: 2.5rem; text-transform: uppercase; color: #333; }

/* Grid 3x3 */
.bering-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tarjeta de Producto */
.bering-product-item { background: #fff; border-radius: 12px; overflow: hidden; transition: 0.4s; border: 1px solid #eee; }
.bering-product-item:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: translateY(-10px); }
.product-thumb img { width: 100%; height: 250px; object-fit: cover; }
.product-name { font-weight: 600; font-size: 1.1rem; padding: 20px; color: #444; font-family: 'Montserrat', sans-serif; }

/* Paginación estilo botón */
.bering-pagination { display: flex; justify-content: center; gap: 10px; }
.bering-pagination .page-numbers { 
    padding: 10px 20px; border: 1px solid #ff242a; color: #ff242a; border-radius: 5px; 
    font-weight: 600; text-decoration: none; 
}
.bering-pagination .current { background: #ff242a; color: #fff; }

/* Responsive */
@media (max-width: 992px) { .bering-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .bering-product-grid { grid-template-columns: 1fr; } }
/*fin cateogry*/

/*estilos para la página de contacto*/
.bering-contact-page { font-family: 'Montserrat', sans-serif; }

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #444;
}

.contact-info-list li i {
    color: #ff242a; /* Color corporativo */
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
}

.contact-form-wrapper {
    border-top: 5px solid #ff242a;
    background: #f8f9fa;
}

/* Ajustes para el Breadcrumb */
#breadcrumbs { font-size: 0.9rem; color: #888; }
#breadcrumbs a { color: #ff242a; text-decoration: none; }
/*fin estilos para la página de contacto*/

/*estilos para single productos*/
/* Tipografía y Base */
.bering-single-product { font-family: 'Montserrat', sans-serif; background: #fff; }

.product-title { 
    font-weight: 500; 
    font-size: 2.8rem; 
    color: #222; 
    margin-bottom: 20px; 
    font-family: 'Montserrat', sans-serif;
}

.product-excerpt { font-weight: 400; color: #555; line-height: 1.6; }

/* Botón CTA */
.btn-primary { 
    background-color: #ff242a; 
    border: none; 
    padding: 15px 30px; 
    font-weight: 600; 
    font-size: 1rem;
    border-radius: 50px; 
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}
.btn-primary:hover { background-color: #d11d23; transform: scale(1.05); }

/* Contenido */
.product-content { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #333; 
    border-top: 1px solid #eee; 
    padding-top: 0px; 
}
.product-content h2 { font-weight: 500; margin-top: 30px; color: #000; font-family: 'Montserrat', sans-serif; }
span.share-label { font-weight: 600; color: #000; margin-right: 10px; font-family: 'Montserrat', sans-serif; font-size: 1.6rem; display:block; margin-bottom: 10px; }
/*fin estilos para single productos*/
/* Estilos para el contenedor 404 */
.bering-404-container { 
    font-family: 'Montserrat', sans-serif; 
    padding: 80px 0; 
}

.error-icon { 
    font-size: 80px; 
    color: #ff242a; /* Color rojo corporativo */
}

.error-title { 
    font-weight: 800; 
    font-size: 6rem; 
    color: #333; 
    margin: 0;
}

.error-subtitle { 
    font-weight: 600; 
    color: #444; 
}

.error-description { 
    font-size: 1.2rem; 
    color: #666; 
    line-height: 1.6;
}

/* Botón moderno */
.btn-bering-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff242a;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-bering-primary:hover {
    background-color: #333;
    transform: translateY(-5px);
}
/*fin estilos 404*/
/*estilos para tablas de entradas*/
.bering-table-wrap { overflow-x: auto; margin: 30px 0; }
.bering-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-family: 'Montserrat', sans-serif !important; 
    border: 1px solid #ddd;
}
.bering-table th { 
    background-color: #ff242a; 
    color: #fff; 
    padding: 15px 20px; 
    text-align: left; 
    font-weight: 800; 
    text-transform: uppercase;
}
.bering-table td { 
    padding: 10px 20px; 
    border-bottom: 1px solid #eee; 
    color: #444; 
    vertical-align: middle;
}
/* Efecto fila cebra para lectura técnica */
.bering-table tr:nth-child(even) { background-color: #f9f9f9; }
.bering-table td:first-child { font-weight: 700; width: 35%; color: #222; }
.bering-note { font-size: 0.8rem; color: #888; margin-top: 10px; font-style: italic; }
/*fin estilos para tablas de entradas*/
.bg-white {
    background-color: #FFF;
    position: -webkit-sticky; /* Para Safari */
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    /* Nueva línea para la sombra */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-item {
    background: #f4f4f4;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    width: 80px;
}

.sidebar-item:hover {
    background: #ffffff;
    border-left: 4px solid #cc0000; /* Color de tu marca */
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.sidebar-item span {
    font-size: 12px;
    font-weight: bold;
}
@media (max-width: 768px) { .floating-sidebar { display: none; } }
/* ==========================================
   ESTILOS BERING - ARCHIVE PRODUCT & MONTSERRAT
   (Sin variables :root)
   ========================================== */

/* Tipografía global para el catálogo */
.bering-archive-container {
    font-family: 'Montserrat', sans-serif;
    color: #121212;
}

/* Encabezado y Título */
.archive-header .category-title {
    font-weight: 800; /* Extra Bold */
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-size: 2.2rem;
    color: #121212;
}

.separador-bering {
    width: 60px;
    height: 4px;
    background-color: #e62b2b;
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid de Productos */
.bering-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Tarjeta de Producto */
.bering-product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bering-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Imagen de Producto */
.product-thumb-wrapper {
    position: relative;
    background-color: #f8f9fa;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
}

.product-thumb-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bering-product-card:hover .product-thumb-wrapper img {
    transform: scale(1.05);
}

.badge-bering {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e62b2b;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Detalles del Producto */
.product-info {
    padding: 20px 15px;
}

.product-sku-code {
    display: block;
    font-weight: 400; /* Regular */
    font-size: 0.75rem;
    color: #777777;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.product-name {
    font-weight: 700; /* Bold */
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 15px;
    min-height: 2.6em; /* Mantiene tarjetas alineadas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: #121212;
    text-decoration: none;
    transition: color 0.2s;
}

.product-name a:hover {
    color: #e62b2b;
}

/* Botón Ver Detalle */
.btn-bering-ver {
    display: inline-block;
    width: 100%;
    background-color: transparent;
    color: #121212;
    border: 2px solid #121212;
    padding: 8px 0;
    font-weight: 600; /* Semi Bold */
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-bering-ver:hover {
    background-color: #e62b2b;
    border-color: #e62b2b;
    color: #ffffff;
}

/* Paginación Mejorada */
.bering-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.bering-pagination ul li a,
.bering-pagination ul li span {
    display: block;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    color: #121212;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.bering-pagination ul li span.current,
.bering-pagination ul li a:hover {
    background-color: #e62b2b;
    color: #ffffff;
    border-color: #e62b2b;
}
/* ==========================================================================
   ESTILOS SINGLE PRODUCT - BERING INDUSTRIAL (Corregido)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Aplicación Global de Fuente y Reset de Listas */
.bering-single-container,
.bering-single-container * {
    font-family: 'Montserrat', sans-serif !important;
}

/* Quitar discos / puntos / viñetas de TODAS las listas */
.bering-single-container ul,
.bering-single-container ol,
.bering-single-container li,
.woocommerce-tabs ul.tabs,
.woocommerce-tabs ul.tabs li,
.bering-gallery-thumbnails {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.bering-single-container {
    color: #121212;
    background-color: #f8f9fa;
}

/* Breadcrumbs */
.bering-single-breadcrumb, 
.bering-single-breadcrumb a {
    font-weight: 500;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
}
.bering-single-breadcrumb a:hover {
    color: #e62b2b;
}

/* Galería */
.bering-gallery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.main-image-viewport {
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    min-height: 380px;
}

.bering-main-img {
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.main-image-viewport:hover .bering-main-img {
    transform: scale(1.06);
}

.thumb-item {
    cursor: pointer;
}

.thumb-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.thumb-item img:hover {
    border-color: #e62b2b;
    transform: translateY(-2px);
}

/* Badges */
.bering-badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e62b2b;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 1px;
}

.bering-brand-badge span {
    display: inline-block;
    background-color: #121212;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1.5px;
}

/* Título & Precio */
.bering-product-summary .product-title {
    font-weight: 800;
    font-size: 2rem;
    color: #121212;
    line-height: 1.2;
}

.bering-price-box {
    font-size: 1.75rem;
    font-weight: 800;
    color: #e62b2b;
}

.bering-price-box del {
    color: #94a3b8;
    font-size: 1.25rem;
    font-weight: 500;
    margin-right: 8px;
}

.bering-price-box ins {
    text-decoration: none;
}

/* Botón Añadir al Carrito */
.bering-add-to-cart-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.bering-add-to-cart-box .single_add_to_cart_button {
    background-color: #e62b2b !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.bering-add-to-cart-box .single_add_to_cart_button:hover {
    background-color: #121212 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
body.home .bering-product-card {
    padding:0;
}
body.page-id-14 .bg-accesorioss {
    display: none;
}
.owl-carousel .owl-item img {
    width: fit-content !important;
}