.mySlides {
    filter: brightness(0.8); /* Hace que las fotos sean un pelín más oscuras para que el texto brille */
    transition: transform 10s ease; /* Efecto de zoom muy lento al estar la foto quieta */
}

/* Contenedor principal a pantalla completa */
.hero-fullscreen {
    position: relative;
    height: 100vh; /* Ocupa el 100% de la altura de la ventana */
    width: 100%;
    overflow: hidden;
}

.slider-wrapper .mySlides {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Mantiene la proporción sin deformar */
    display: block;
}

/* Oscurecer un poco las fotos para que el texto se lea bien */
.slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Capa oscura al 40% */
}

.quality-features{
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr 1fr;
}

/* Centrar el texto vertical y horizontalmente */
/* Ajustamos el Overlay para que el texto no flote en medio de la nada */
.overlay-industrial {
        position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 5;
    padding-bottom: 100px; 
}

.content-box {
    width: 50%;
    max-width: 1000px; /* Evita que el texto se estire demasiado en pantallas anchas */
}

.col-md-7 {
        width: 100%;
    }

.texto-etxea {
        color: #ffffff;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    width: 100%;
    padding-left: 30px;
}

.container {
        width: 100%;
    }

.container:before {

	display: none;
}
.row:before {
    display: none;
}

/* --- AJUSTES PARA TABLET Y MÓVIL --- */
@media (max-width: 1024px) {
    /* Ajustamos los paddings laterales de 150px a algo razonable */
    section {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    
    .content-box {
        width: 80%; /* Más ancho en tablets */
    }

    .letras-home{
    	top: 0px;
    }
}

.js .cd-h-timeline__navigation {
    display: block !important;

    /* Estilos para la sección Sectores */
.linea-roja-centro {
    width: 60px;
    height: 3px;
    background-color: #ed1c24;
    margin: 20px auto;
}

.sector-card {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sector-card h6 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Botón Estilo OTSAMEK */
.btn-otsabio-dark {
    display: inline-block;
    padding: 15px 35px;
    background-color: #232323;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.width-100-imp{
    width: 100% !important;
}

.btn-otsabio-dark:hover {
    background-color: #ed1c24;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.3);
}

.center-col { float: none; margin-left: auto; margin-right: auto; }
}

/* Forzar que las columnas tengan la misma altura */
.row-flex {
    display: flex;
    flex-wrap: wrap;
}

/* Asegurar que las columnas hijas ocupen todo el alto disponible */
.row-flex > div[class*='col-'] {
    display: flex;
}

.dgrid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

@media(max-width:768px){
    .dgrid{

    grid-template-columns: 1fr 1fr;
}



}

@media(max-width:425px){
    .dgrid{

    grid-template-columns: 1fr;
}
}
.sector-card {
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    
    /* Simetría interna */
    width: 100%; /* Ocupa todo el ancho de la columna */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el icono y el texto */
    align-items: center;     /* Centra horizontalmente */
    min-height: 200px;       /* Altura mínima uniforme */
    
    position: relative;
    overflow: hidden;
}

.sector-card h6 {
    margin: 0;
    font-size: 25px;
    line-height: 1.4;
    min-height: 42px; /* Reserva espacio para 2 líneas de texto, manteniendo la simetría */
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.sector-icon {
    font-size: 32px;
    margin-bottom: 20px;
    height: 40px; /* Espacio fijo para el icono */
    display: flex;
    align-items: center;
}

/* Animación de la flecha al hacer HOVER */
.animated-arrow:hover .the-arrow.-right {
    transform: translateX(10px); /* Desplaza la flecha a la derecha */
}


/* Si quieres que el botón cambie de fondo también */
.btn-otsabio-custom:hover {
    border-color: #ed1c24;
    color: #ed1c24 !important;
}

/* Ajuste manual de la flecha dentro del botón */
.btn-otsabio-custom .the-arrow.-right {
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
    position: relative;
    transition: all 0.3s ease;
}

/* Estilo del cuerpo de la flecha (shaft) si no lo tienes definido */
.animated-arrow .shaft {
    display: inline-block;
    width: 15px;
    height: 2px;
    background-color: #232323;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Contenedor de la imagen */
.proyecto-img-container {
    position: relative;
    overflow: hidden;
    height: 300px; /* Altura fija para simetría */
}

.proyecto-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Overlay oscuro */
.proyecto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 35, 0.85); /* Color gris oscuro industrial */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.proyecto-img-container:hover img {
    transform: scale(1.1);
}

.proyecto-img-container:hover .proyecto-overlay {
    opacity: 1;
}

/* Detalles del texto en el overlay */
.proyecto-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.proyecto-info h6 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Ajuste de márgenes para la rejilla */
.proyecto-item {
    padding: 5px; /* Crea una pequeña separación entre fotos */
}


/* ============================================================
   VERSION MOVIL Y TABLET PARA SERVICIOS
   ============================================================ */

@media (max-width: 991px) {
    /* Ajuste de la primera sección (Imagen y Texto) */
    section[style*="background-color:var(--berde)"] .col-md-6 {
        width: 100% !important;
        text-align: center !important;
    }
    
    section[style*="background-color:var(--berde)"] .text-right {
        text-align: center !important;
        margin-top: 30px;
    }

    .display-table, .display-table-cell {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Sectores: 2 columnas en Tablet */
    .col-sm-6.margin-30px-bottom {
        width: 50% !important;
        float: left;
    }
}

@media (max-width: 767px) {
    /* General: Reducir rellenos excesivos */
    section {
        padding: 50px 0 !important;
    }

    /* Sectores: 1 columna en Móvil */
    .col-sm-6.margin-30px-bottom {
        width: 100% !important;
        float: none;
    }

    .quality-features{
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
}

    .sector-card {
        min-height: 150px;
        padding: 30px 15px;
    }

    .sector-card h6 {
        font-size: 18px;
    }

    /* Títulos */
    h4 {
        font-size: 22px !important;
        line-height: 28px !important;
        text-align: center;
    }

    p.text-extra-large {
        font-size: 16px !important;
        line-height: 24px !important;
    }

    /* Proyectos: 1 sola columna para que luzcan las fotos */
    .proyecto-item {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .proyecto-img-container {
        height: 250px; /* Un poco más bajo para no hacer scroll eterno */
    }

    /* Forzar que el overlay sea visible en móvil o activable con toque */
    .proyecto-overlay {
        opacity: 0.9; /* En móvil es mejor que se vea un poco siempre para saber qué es */
        background: rgba(35, 35, 35, 0.7);
    }

    /* Botón inferior */
    .btn-otsabio-custom {
        width: 100%;
        padding: 15px 10px;
    }
    
    .btn-otsabio-custom .text {
        font-size: 12px;
    }
}

/* Ajuste para el menú inferior en móviles */
@media (max-width: 767px) {
    .navbar-nav {
        margin: 0;
    }
    .menuenlace {
        border-bottom: 1px solid #ddd;
    }
    .logo-foti {
        margin: 0 auto;
    }
}

@media(max-width:425px){
    .quality-features{
        display: grid;
        gap: 25px;
        grid-template-columns: 1fr;
    }

    .col-sm-6.margin-30px-bottom {
        width: 50% !important;
        float: none;
    }
    
}

@media (max-width: 768px) {
    section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Convertimos los GRIDS de 2 columnas a 1 columna */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Ajuste del Hero (Pantalla inicial) */
    .hero-fullscreen {
        height: 80vh; /* Un poco más bajo en móvil para ver que hay contenido debajo */
    }
    .slider-wrapper .mySlides {
        height: 80vh;
    }
    .overlay-industrial {
        padding-bottom: 40px;
        align-items: center; /* Centramos el texto verticalmente en móvil */
    }
    .texto-etxea {
        font-size: 1.6rem;
        padding-left: 0;
        text-align: center;
    }
    .letras-inicio {
        text-align: center;
        font-size: 7rem;
    }
    .content-box {
        width: 100%;
    }

    /* Ajuste de botones para que no se solapen */
    div[style*="height: 100px"] {
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 20px;
    }
    .btn-small {
        margin: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* Imagen de Clientes */
    div[style*="display: grid; flex-wrap: wrap"] {
        padding-left: 0 !important;
    }
    
    /* El menú inferior lo hacemos scrolleable si no cabe */
    .navbar-nav {
        display: flex !important;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .texto-etxea {
        font-size: 2rem;
    }

    .overlay-industrial {
        padding-top: 120px; 
    }
    .texto-etxea {
        font-size: 1.8rem;
    }
}

.text-stroke {
        color: var(--berde);
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: var(--berde);
        font-family: 'ITC Franklin Gothic Std', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
    }
    .section-contacto {
    padding: 90px 0;
    margin-top: 50px;}
    .contact-info-box { text-align: center; padding: 30px; transition: all 0.3s; height: 100%; border-bottom: 3px solid transparent; }
    .contact-info-box i { font-size: 30px; margin-bottom: 20px; }
    .contact-info-box h6 { font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
    
    /* Estilos Formulario */
    .form-container { padding: 50px; color: #fff; }
    .form-container input, .form-container textarea {
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        color: #fff;
        padding: 15px 0;
        margin-bottom: 20px;
        outline: none;
        transition: border-color 0.3s;
    }
    .form-container input:focus, .form-container textarea:focus { border-bottom-color: var(--berde); }
    .btn-enviar {
        background: var(--berde);
        color: #fff;
        border: none;
        padding: 15px 50px;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 2px;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .width-row-item{
        width: 33%;
    }

    /* Estilos específicos para la estética Otsamek */
    .text-stroke {
        color: var(--berde);
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: var(--berde);
        font-family: 'ITC Franklin Gothic Std', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
    }
    .bg-industrial { background-color: #f4f4f4; }
    .padding-produccion { padding: 90px 0; 

    }
    
    .icon-box { text-align: center; padding: 20px; transition: all 0.3s; }
    .icon-box img { width: 80px; margin-bottom: 15px; }
    .cap-list { list-style: none; padding: 0; }
    .cap-list li { 
        padding: 10px 0; 
        border-bottom: 1px solid rgba(0,0,0,0.1); 
        font-weight: 500;
        display: flex;
        align-items: center;
    }
.cap-list li i {
    color: var(--berde);
    width: 25px; /* Esto alinea el texto perfectamente */
    text-align: center;
    margin-right: 15px;
}    .img-main { width: 100%; height: 500px; object-fit: cover; }

/* ============================================================
   VERSIÓN MÓVIL Y TABLET: PRODUCCIÓN
   ============================================================ */

@media (max-width: 991px) {
    /* Ajuste del Hero inicial */
    .padding-eight-all {
        padding: 40px 20px !important;
        margin-top: 40px;
    }
    .text-titulo{
                font-size: 55px ;

    }
    .text-stroke {
        font-size: 34px ;
        line-height: 1.1;
    }

    /* Eliminar el efecto de alturas iguales para que el contenido fluya */
    .equalize {
        display: block !important;
    }

    /* Forzar que las imágenes ocupen el 100% de ancho */
    .col-lg-6.cover-background {
        height: 300px !important;
        min-height: 300px !important;
    }

    .img-main {
        height: 350px !important;
        margin-bottom: 30px;
    }

    /* Ajuste de paddings en secciones */
    .padding-produccion {
        padding: 60px 0 !important;
    }
}

@media (max-width: 767px) {
    /* Centrar textos en móvil */
    .xs-text-center {
        /* text-align: center; */
    }

    .margin-20px-bottom{
        margin-top: 20px;
    }
    

    /* Reordenar columnas para que la imagen siempre quede arriba del texto */
    .row.equalize {
        display: flex !important;
        flex-direction: column;
    }

    /* La clase col-md-pull y push de Bootstrap debe anularse en móvil */
    .col-md-push-6, .col-md-pull-6 {
        left: 0 !important;
        right: 0 !important;
    }

    /* Ajuste de la lista de capacidades */
    .cap-list li {
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
    }

    /* Cuadrícula de Torneado (Iconos) */
    .icon-box {
        margin-bottom: 40px;
        width: 100% !important;
    }

    /* Sección Calidad */
    .feature-item {
        margin-bottom: 30px;
        padding-left: 0;
        text-align: center;
    }

    .feature-item .number {
        display: block;
        margin: 0 auto 10px;
    }

    .btn-small {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }

    .padding-eight-all {
        padding: 60px 20px !important;
    }
}


@media (max-width: 425px) {
    .text-titulo{
        font-size: 48px !important;
    line-height: 50px !important;

    }
    .text-stroke {
        
    }
}

.text-stroke {
        color: var(--berde);
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: var(--berde);
        font-family: 'ITC Franklin Gothic Std', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
    }
    .section-empresa { padding: 50px 0; 
    margin-top: 80px; }
    .intro-text { font-size: 22px; line-height: 1.6; color: #333; }
    
    /* Estilo para los botones gemelos */
    .btn-doble-container { margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; }
    
    .btn-otsabio-outline {
        padding: 15px 35px;
        border: 2px solid var(--berde);
        color: var(--berde) !important;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 1px;
        transition: all 0.3s;
        text-decoration: none;
    }
    
    .btn-otsabio-outline:hover {
        background-color: var(--berde);
        color: #fff !important;
    }

    .btn-otsabio-full {
        padding: 15px 35px;
        background-color: #232323;
        color: #fff !important;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 1px;
        transition: all 0.3s;
        text-decoration: none;
        border: 2px solid #232323;
    }
    
    .btn-otsabio-full:hover {
        background-color: var(--berde);
        border-color: var(--berde);
    }


    .text-stroke {
        color: var(--berde);
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: var(--berde);
        font-family: 'ITC Franklin Gothic Std', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
    }
    .section-calidad { padding: 90px 0; 
    margin-top: 50px;}
    .bg-cert { background-color: #f8f9fa; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
    
    /* Estilo tarjetas de certificación */
    .cert-card {
        
        padding-top: 40px;
        
display: flex; 
flex-direction: column; 
align-items: center;
        transition: all 0.3s ease;
        height: 100%;
    }

    .cert-icon {
        font-size: 40px;
        margin-bottom: 20px;
    }
    .cert-card h6 {
        font-weight: 700;
        margin-bottom: 10px;
        color: #232323;
    }
    .cert-card p { font-size: 14px; line-height: 1.4; margin: 0; }

    .btn-proyectos {
        display: inline-block;
        padding: 15px 40px;
        background-color: #232323;
        color: #fff !important;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 2px;
        margin-top: 40px;
        transition: all 0.3s;
    }

    .section{
        padding: 130px 30px;
    }
.dgrid2{
 display: grid;
 grid-template-columns: 1fr 1fr;
}
   @media(max-width:425px){
    .width-row-item{
        width: 100%;
    }
    .dgrid2{
        grid-template-columns: 1fr;
    }
    .margin-20px-bottom{
        margin-top: 20px;
    }

    .container2{
        padding:  0px 0px !important;

    }
   }