/* Estilos globales */
html {
    scroll-behavior: smooth;
    /* Habilita el desplazamiento suave para toda la página */
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('tw-cen-mt-condensed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    position: relative;
    min-height: 100vh;
    /* Asegura que el cuerpo ocupe al menos toda la altura de la pantalla */
    display: flex;
    flex-direction: column;
    /* Organiza los elementos en columna */
    background-color: #e0e0e0;
    /* Gris claro */
    box-sizing: border-box;
    /* Incluye el padding y border dentro del tamaño total */
    overflow-x: hidden;
    /* Evita el desbordamiento horizontal */
}

/* Header */
header {
    background-color: #383f48;
    /* Gris oscuro */
    color: white;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.logo {
    width: 400px;
    height: auto;
    margin-top: -10px;
}

.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Asegura que el contenido esté por encima de otros elementos */
}

.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Asegura que el contenido esté por encima de otros elementos */
}

.imagen {
    border-radius: 5px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra sutil */
}

.td_width {
    width: 40%;
}

tr.custom-row {
    height: 50px !important;
}

:target {
    scroll-margin-top: 155px;
    /* Cambia este valor según la altura de tu div fijo */
}

h1 {
    font-family: 'TW Cen MT Condensed', sans-serif;
    font-weight: 100;
    /* Lo más delgado posible */
    font-size: 48px;
    margin-top: 30px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1.0);
    color: #323C47;
}

p {
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1.0);
    /* Sombra de texto */
}

/* Menú de navegación */
nav {
    background-color: #B50811;
    /* Gris medio */
    text-align: center;
    padding: 10px 0;
    overflow-x: auto;
    /* Habilita el desplazamiento horizontal si es necesario */
    white-space: nowrap;
    /* Evita que los elementos se envuelvan en múltiples líneas */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* Mantiene los elementos en línea */
    justify-content: center;
    gap: 20px;
    width: 100%;
}

nav ul li {
    flex-shrink: 0;
    /* Evita que los elementos se reduzcan más allá de su contenido */
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    /* Asegura que el texto no se corte */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1.0);
    /* Sombra de texto */
}

nav ul li a:hover {
    background-color: #6e0000;
    /* Gris oscuro */
    border-radius: 5px;
}

/* Estilos del contenedor */
.contenedor {
    width: 100%;
    max-width: 1200px;
    /* Limita el ancho máximo del contenedor */
    margin: 5px auto 0;
    /* Centra el contenedor */
    padding: 20px;
    /* Espaciado interno */
    background-color: #e0e0e0;
    /* Fondo blanco */
    border-radius: 8px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra sutil */
    box-sizing: border-box;
    /* Incluye el padding y border dentro del tamaño total */
}

/* Estilo para la tabla */
table {
    width: 100%;
    background-color: #e0e0e0;
    table-layout: auto;
    border-collapse: collapse;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    /* Evita el desbordamiento por el padding */
}

/* Estilo para celdas de la tabla */
td {
    padding: 10px;
    box-sizing: border-box;
    /* Evita el desbordamiento por el padding */
}

table img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
    /* Evita el desbordamiento por el padding */
}

iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #B50811;
    /* Gris oscuro */
    color: white;
    text-align: center;
    padding: 1px 0;
    margin-top: auto;
    box-sizing: border-box;

}


/* General para los labels */
label {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

/* Estilo para inputs y textarea */
input,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    /* Para que el padding no afecte el ancho total */
}

/* Estilo para el foco de los inputs y textarea */
input:focus,
textarea:focus {
    border-color: #606060;
    /* Gris medio */
    outline: none;
    background-color: #fff;
}

/* Estilo para los botones */
button {
    padding: 10px;
    font-size: 1rem;
    color: white;
    background-color: #383f48;
    /* Gris oscuro */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
    box-sizing: border-box;
    /* Asegurarse de que el padding no afecte el ancho total */
}

/* Estilo cuando se pasa el mouse sobre el botón */
button:hover {
    background-color: #606060;
    /* Gris medio */
}

/* Estilo para el botón reset */
button[type="reset"] {
    background-color: #808080;
    /* Gris claro */
}

button[type="reset"]:hover {
    background-color: #6e6e6e;
    /* Gris un poco más oscuro */
}

/* Estilos propios */
.texto {
    text-align: justify;
    text-indent: 30px;
    line-height: 1.6;
}

.no-sombra {
    box-shadow: none;
    /* Elimina la sombra del contenedor */
    text-shadow: none;
    /* Elimina la sombra del texto */
}

.Pid {
    width: 40%;
    text-align: center;

}

.hcontacto {
    font-size: 2.2rem;
    margin-bottom: 5px;
}


}

.prod_title {
    position: relative;
    top: 45px;
    margin-left: -200px;
    "

}

.tbl_ctc {
    padding-left: 15px;
    width: 30%;
}

.iframe {
    width: 80%;
    height: 400px;
}

.div_ctc {
    position: relative;
    top: -20px;
}

.img-prod {
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: 75px;

}

.tbl_prod {
    margin: auto;
    display: block;
    width: 80%;
}

/* Estilos responsivos */

/* Pantallas grandes */
@media (max-width: 1600px) {
    .contenedor {
        padding: 30px;
    }

    .logo {
        width: 220px;
    }

    h1 {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 25px;
    }

    nav ul li a {
        font-size: 16px;
    }
}

/* Pantallas medianas */
@media (max-width: 1024px) {
    .contenedor {
        padding: 25px;
    }

    .logo {
        width: 180px;
    }

    h1 {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 13px;
    }

    /* Ajustar la tabla a una sola columna en pantallas pequeñas */
    table {
        display: block;
        overflow-x: auto;
        width: 100%;
        table-layout: fixed;
    }

    table tr {
        display: block;
        width: 100%;
    }

    table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .img-prod {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-left: 0px;

    }

    .tbl_prod {
        margin: auto;
        display: block;
        width: 100%;
    }

}

/* Pantallas más pequeñas */
@media (max-width: 900px) {
    .contenedor {
        padding: 20px;
    }

    .header-container {
        flex-direction: row;
        text-align: center;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .Pid {
        width: 100%;
        text-align: center;
    }

    .hPid {
        font-size: 2rem;
    }

    .hcontacto {
        font-size: 1.5rem;
    }

    .tbl_prod {
        margin: auto;
        display: block;
        width: 100%;
    }

    .td_width {
        width: 100%;
    }


    /* Ajustar la tabla a una sola columna en pantallas pequeñas */
    table {
        display: block;
        overflow-x: auto;
        width: 100%;
        table-layout: fixed;
    }

    table tr {
        display: block;
        width: 100%;
    }

    table td {
        display: block;
        width: 100%;
        text-align: left;
    }


    .iframe {
        width: 100%;
        height: 400px;
    }

    .div_ctc {
        position: relative;
        top: -30px;
    }

    .img-prod {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-left: 0px;

    }


}


/* Pantallas pequeñas */
@media (max-width: 600px) {
    .contenedor {
        padding: 15px;
    }

    .logo {
        width: 150px;
    }

    h1 {
        font-size: 1.1rem;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Ajustar la tabla a una sola columna en pantallas pequeñas */
    table {
        display: block;
        overflow-x: auto;
        width: 100%;
        table-layout: fixed;
    }

    table tr {
        display: block;
        width: 100%;
    }

    table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .tbl_ctc {
        padding-left: 10px;
        width: 100%;
        height: 40px;
    }

    .div_prod {
        top: 0px !important;
        margin-left: 0px !important;
        ;
    }



}


/* Pantallas muy pequeñas */
@media (max-width: 400px) {
    .contenedor {
        padding: 10px;
    }

    .logo {
        width: 130px;
    }

    h1 {
        font-size: 1rem;
    }

    nav ul li a {
        font-size: 11px;
        padding: 7px 8px;
    }
}