@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
}

body {
    background-color: rgb(0, 0, 0);
    margin: 0;
    overflow-x: hidden;
}

.container-all {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    margin-top: 0;
    /* elimina margen superior */
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    position: static;
    /* explícito pero se puede omitir */
}

.container-form {
    width: 80%;
    padding: 40px;
    background-color: #ffffff;
}

.logo {
    width: 150px;
    margin: auto;
    display: block;
}

.title {
    text-align: center;
    margin-top: 20px;
    font-weight: 300;
    color: #7a7a7a;
}

label {
    display: block;
    margin-top: 30px;
    font-weight: 300;
    font-size: 20px;
    color: #7a7a7a;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 30px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    outline: none;
    color: black;
    font-size: 16px;
}

input[type="submit"],
.btn,
button.btn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 18px;
}

input[type="submit"]:hover,
.btn:hover,
button.btn:hover {
    background: #0056b3;
}

.text-footer {
    display: block;
    margin-top: auto;
    margin-bottom: 0;
    text-align: center;
    color: #7a7a7a;
    font-weight: 500;
}

.text-footer a {
    color: rgb(127, 127, 223);
    font-weight: 500;
}

.content-text {
    width: 100%;
    background-image: url('../img/OIP.jpg');
    background-position: center;
    background-size: cover;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title-description,
.text-description {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 0;
    transform: none;
}

.title-description {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 20px;
    margin-top: 0;
}

.text-description {
    font-size: 18px;
    font-weight: 200;
    max-width: 80%;
    margin: 0 auto;
}

.msg-error {
    color: red;
    display: block;
    margin-top: 10px;
}

/* Formulario de registro */
form {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

form label {
    font-size: 1rem;
    color: #555;
    margin-bottom: 6px;
    font-weight: 400;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafafa;
    color: #222;
    transition: border 0.2s;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus {
    border: 1.5px solid #7a7a7a;
    outline: none;
}

form input[type="submit"],
.btn,
button.btn {

    display: inline-block;
    margin-top: 20px;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

form input[type="submit"]:hover,
.btn:hover,
button.btn:hover {
    background: #333;
}

/* Navbar */
.navbar {
    
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    justify-content: space-between;
    background-color: #fff;

}

.logo2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo2 img {
    height: 80px;
    /* cambia aquí el tamaño */
    width: auto;
    /* asegúrate de no distorsionar */
    max-height: none;
    /* anula restricciones */
    max-width: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0 100px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: white;
    z-index: 1001;
    padding: 2rem;
    transition: left 0.3s ease-in-out;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu li a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #333;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-menu-backdrop.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 769px) {

    .mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
    }
}


.hero-section {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    height: 100%;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que la imagen cubra el área sin deformarse */
}

@media (max-width: 768px) {
    .hero-section {
        height: 36vh;
    }


    .hero-banner {
        height: 30vh;

    }
}

.whatsapp-button {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5e7fbd86;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    text-align: center;
    font-size: 1rem;
}


.whatsapp-button:hover {
    background-color: #ffffff9a;
}

.services-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: #007bff;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.carousel-section {
    padding: 40px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.carousel-section h2 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.carousel-track {
    display: inline-flex;
    gap: 10px;
}

.carousel-track img {
    width: 250px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.carousel-track img:hover {
    transform: scale(1.05);
}

/* About Section */
.about-section {
    background-color: #e6ecf0;
    padding: 50px 20px;
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #003b73;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #333;
}

/* Contenedor y tabla */
.container-forms {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.container-forms p {
    max-width: 100%;
    /* que no salga del contenedor */
    white-space: pre-wrap;
    /* mantiene saltos de línea y espacios */
    word-wrap: break-word;
    /* quiebra palabras muy largas */
    overflow-wrap: break-word;
    /* respaldo para word-wrap */
    overflow: auto;
    /* agrega scroll si desborda (vertical u horizontal) */
    max-height: 300px;
    /* opcional, para limitar altura y que salga scroll */
    border: 1px solid #ddd;
    /* para visualizar mejor */
    padding: 8px;
    background-color: #f9f9f9;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    /* Habilitar scroll horizontal */
    -webkit-overflow-scrolling: touch;
    /* Mejora el desplazamiento en dispositivos móviles */
    margin-bottom: 20px;
    /* Ajuste para mejorar la apariencia */
}

/* Estilo para la tabla con bordes redondeados y sombra */
/* Estilos para la tabla */
table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin-top: 20px;
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #003670;
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #e9f0fb;
}

/* Estilos para textarea dentro de la tabla */
table textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    resize: vertical;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Estilos para botones dentro de la tabla */
table button.view-response,
table button.btn-feedback {
    background-color: #0261c7;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

table button.view-response:hover,
table button.btn-feedback:hover {
    background-color: #014288;
}

/* Opcional: botón para enviar retroalimentación */
table button.btn-feedback {
    margin-top: 6px;
    width: 100%;
    box-sizing: border-box;
}

.modal {
    display: none;
    /* oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333;
    white-space: pre-wrap;
    /* Para que respete saltos de línea */
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-feedback {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 5px;
}

.btn-feedback:hover {
    background-color: #218838;
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

th,
td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #f2f2f2;
}

textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    font-family: Arial, sans-serif;
    font-size: 0.95em;
}


/* Contenedor principal del catálogo */
.catalogo {
    padding: 40px;
    text-align: center;
}

.catalogo .title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Contenedor de los productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

/* Estilos para cada tarjeta de producto */
.product-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    min-height: 450px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 85%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 180px;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
}

.comprar-btn {
    background-color: #000000;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;

}

.comprar-btn:hover {
    background-color: #218838;
}

/* Estilos para la página de carrito */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    text-align: justify;
    max-height: 100px;
    /* Limita la altura de la descripción */
    overflow: hidden;
    /* Oculta el contenido extra */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Estilo para mostrar la descripción completa al hacer hover */
.product-card:hover .product-description {
    max-height: 300px;
    /* Expande el contenedor cuando se pasa el ratón */
    padding-bottom: 20px;
    /* Añade espacio extra al final de la descripción */
}

/* Estilo para el botón de "ver más" si se requiere */
.product-card:hover .comprar-btn {
    background-color: #007bff;
}

.product-description p {
    margin: 0;
}

#trazabilidadModal .modal-content {
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#trazabilidadContent {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    background: #f9f9f9;
}

/* Estilos del modal de respuesta soporte */
#responseModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    display: flex;
    /* para centrar el contenido */
}

#responseModal .modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

#modalResponseText {
    white-space: pre-wrap;
    /* saltos de línea automáticos */
    overflow-y: auto;
    /* scroll vertical */
    max-height: 400px;
    /* altura máxima para activar scroll */
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    flex: 1 1 auto;
    min-height: 0;
    /* importante para scroll en flexbox */
    word-break: break-word;
    /* para que palabras largas no salgan fuera */
}

#trazabilidadModal,
#responseModal {
    display: none;
    /* También agrega estilos para centrar y oscurecer el fondo, si quieres */
}
.main-footer {     
    background-color: #f1f1f1;     
    padding: 40px 20px;     
    color: #333;     
    font-family: Arial, sans-serif; 
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    box-sizing: border-box; /* Para no afectar los márgenes/paddings */
}  

.footer-content {     
    max-width: 1200px;     
    margin: 0 auto;     
    display: flex;     
    flex-wrap: wrap;     
    justify-content: space-between;     
    gap: 20px; 
    width: 100%; /* Asegura que ocupe todo el espacio disponible */
}  

.footer-section {     
    flex: 1 1 300px;     
    min-width: 250px;     
    box-sizing: border-box; /* Asegura que los márgenes y padding no se acumulen */
}  

.footer-section h3 {     
    margin-top: 0;     
    margin-bottom: 10px; 
    font-size: 1.2rem; /* Aumenta ligeramente el tamaño de fuente */
}  

.footer-section a {     
    color: #333;     
    text-decoration: none; 
    font-size: 1rem; /* Tamaño de fuente más adecuado */
}  

.footer-section a:hover {     
    text-decoration: underline; 
}  

/* Media Queries para dispositivos pequeños */
@media (max-width: 768px) {     
    .footer-content {         
        flex-direction: column;         
        text-align: center;         
        align-items: center;     
    }      
    .footer-section {         
        margin-bottom: 20px;         
        text-align: center; /* Centra el contenido de las secciones */
    }     
    .footer-section h3 {         
        font-size: 1.1rem; /* Ajusta el tamaño del texto */
    }     
    .footer-section a {         
        font-size: 0.9rem; /* Ajusta el tamaño de los links */
    }     
}  


/* Para dispositivos pequeños */
@media (max-width: 768px) {
    .product-description {
        font-size: 0.9rem;
        max-height: 120px;
        /* Ajusta la altura para pantallas pequeñas */
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .comprar-btn {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 15px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .comprar-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-all {
        flex-direction: column;
        width: 90%;
    }

    .container-form {
        width: 100%;
        padding: 20px;
    }

    .navbar {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-links li {
        display: block;
        text-align: center;
    }

    .container-forms {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .whatsapp-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        bottom: 1.5rem;
    }
}