/* ---------------- Header ---------------- */
.header {
    background-color: #222831; /* Fondo oscuro para el menú */
    color: white;
    padding: 0rem 2rem; /* Agrega más espacio alrededor */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Hace que el menú siempre esté visible */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Espacio para que la imagen no se mezcle con el menú */
body {
    padding-top: 80px; /* Ajusta según la altura del menú */
}

/* ---------------- Logo ---------------- */
.logo img {
    height: 8rem; /* Ajusta el tamaño del logo */
}

/* ---------------- Menú ---------------- */
.nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav__menu li {
    position: relative;
}

.nav__menu a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.nav__menu a:hover {
    color: #FF914D; /* Color de resalte */
}

/* ---------------- Submenú ---------------- */
.nav__menu .is-parent ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222831;
    list-style: none;
    padding: 0;
    width: 200px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.nav__menu .is-parent:hover > ul {
    display: block;
}

.nav__menu .is-parent ul li a {
    padding: 10px;
    display: block;
    color: white;
}

.nav__menu .is-parent ul li a:hover {
    background: #FF914D;
    color: white;
}


/* ------------index----------*/
.hero {
    width: 100%;
    height: 600px;
    background: url('../img/fondo.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero__content {
    background: rgba(0, 0, 0, 0); /* Oscurece el fondo para mejor lectura */
    padding: 20px;
    border-radius: 10px;
}

/* ============================Contenedor de la imagen debajo del menú=================================== */
.header__image {
    width: 100%;
    height: 350px; /* Ajusta la altura según prefieras */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen dentro del contenedor */
.header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.8); /* Oscurece la imagen para mejor visibilidad del texto */
}

/* Texto sobre la imagen */
.header__overlay {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
}

/* ======= Ajustes para Pantallas Pequeñas ======= */
@media (max-width: 768px) {
    .header__image {
        height: 250px; /* Reduce la altura en móviles */
    }

    .header__overlay {
        font-size: 1.4rem;
        width: 90%;
        padding: 10px;
    }

    .header__overlay h1 {
        font-size: 1.5rem;
    }

    .header__overlay h2 {
        font-size: 1.2rem;
    }
}


/* Submenú */
.nav__menu .is-parent > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #434242;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav__menu .is-parent:hover > ul {
    display: block;
    }

/* Toggle para el menú móvil */
.nav__toggle--icon {
    display: none;
    cursor: pointer;
}
.nav__toggle--icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
}

/*-----------------------CUERPO-------------------------------*/
#main {
    min-height: 80vh;
}


/* ---------------- Menú Móvil ---------------- */
.nav__toggle--icon {
    display: none;
    cursor: pointer;
}

.nav__toggle--icon span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 5px 0;
    background: white;
}

/* ---------------- Versión Móvil ---------------- */
@media (max-width: 991px) {
    .nav__menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: #222831;
        flex-direction: column;
        padding-top: 60px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    }

    .nav__menu.is-active {
        left: 0;
    }

    .nav__toggle--icon {
        display: block;
    }

    .nav__menu a {
        padding: 15px;
        display: block;
        color: white;
    }

    .nav__menu .is-parent ul {
        position: static;
        display: none;
        padding-left: 1rem;
    }

    .nav__menu .is-parent.is-active > ul {
        display: block;
    }
}


@media (max-width: 768px) {
    .header__image {
        height: 250px; /* Reduce la altura en móviles */
    }
    .header__overlay {
        font-size: 1rem;

    }
    

}



/*------------------------------------------------- Sección de Marcas index --------------------------------------------*/
.marcas {
    text-align: center;
    padding: 50px 20px;
    background-color: #F5F5F5; /* Fondo gris claro */
}

.marcas h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222831;
}

/* Contenedor de logos */
.marcas__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Estilos de cada logo */
.marca {
    width: 150px; /* Ajusta según necesites */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.marca img {
    width: 100%;
    height: auto;
    max-height: 80px; /* Evita que sean demasiado grandes */
    filter: grayscale(100%); /* Hace los logos en escala de grises */
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.marca img:hover {
    filter: grayscale(0%); /* Vuelve a color al pasar el mouse */
    transform: scale(1.1); /* Pequeño zoom */
}

/* Ajuste en pantallas pequeñas */
@media (max-width: 768px) {
    .marca {
        width: 120px;
    }

    .marca img {
        max-height: 60px;
    }
}


/* ---------------- Ajustes de los párrafos en pantallas pequeñas ---------------- */
@media (max-width: 768px) {
    .parrafo {
        width: 95%; /* Aumentar el ancho para acercarse más a los bordes */
        text-align: justify;
        font-size: 1rem; /* Ajustar tamaño para mejor lectura */
    }

    .sobre_nosotros, .servicios {
        padding: 15px;
    }
}

/* ---------------- Ajustes generales ---------------- */
.parrafo {
    width: 50%;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.sobre_nosotros, .servicios {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
    padding: 20px;
    border-radius: 10px;
    background: #F5F5F5; /* Fondo gris claro */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.sobre_nosotros:nth-child(even), .servicios:nth-child(even) {
    flex-direction: row-reverse;
}

.img_sob_nos, .img_servicios {
    width: 45%;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.img_sob_nos:hover, .img_servicios:hover {
    transform: scale(1.05); /* Efecto de zoom suave */
}

@media (max-width: 768px) {
    .sobre_nosotros, .servicios {
        flex-direction: column;
        text-align: center;
    }

    .sobre_nosotros:nth-child(even), .servicios:nth-child(even) {
        flex-direction: column; /* Evita que se inviertan en móviles */
    }

    .img_sob_nos, .img_servicios {
        width: 90%;
    }

    .parrafo {
        width: 95%;
        text-align: justify;
    }
}


.main__carrousel{

    width: 60rem;
    padding: 20px;
    margin-top: 25px;
justify-items: center;

}

.section__carrousel{
    width: 300px;
    height: 300px;
    padding-top: 50px;

}



/*tabla catalogo*/

table {
  width: 60%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th, td {
  border: 1px solid #999;
  padding: 10px;
  text-align: left;
}

tr.selected {
  background-color: #cce5ff;
}

#infoFila {
  font-weight: bold;
}

td:focus {
  outline: 2px solid #007bff;
  background-color: #eef7ff;
}

    #tablaWrapper {
      max-height: 400px; /* Muestra aprox. 10 filas */
      overflow-y: auto;
    }
    tr.selected {
    background-color: #d1ecf1 !important;
    border-left: 4px solid #0c5460;
    font-weight: bold;
    }
  .img-estandar {
    width: 100%;         /* para ocupar el ancho del contenedor */
    max-width: 300px;    /* tamaño máximo para controlar proporción */
    height: 200px;       /* altura fija */
    object-fit: contain; /* mantiene proporción sin recortar */
    margin: auto;
    display: block;
  }
    