/* Franjas de colores en el header */
.header-stripes {
    display: grid;
    height: 20px;
}

.header-stripes .blue-stripe {
    background-color: #2602c7; /* Azul */
    flex: 1;
    width: 100%;

}

.header-stripes .red-stripe {
    background-color: #2602c7; /* Rojo */
    flex: 1;
    width: 100%;
}

/* Contenido del header */
.header-content {
    display: grid;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff00;
    box-shadow: 0 2px 4px rgb(255, 255, 255);
}

.header-content .logo {
    height: 100px;
    margin-right: 1rem;
    justify-self: center;
}

.header-content h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}
/* General */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #d32f2f00; /* Rojo temático */
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 0; /* Eliminar márgenes inferiores */
    padding-bottom: 0; /* Reducir padding inferior */
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color:none; /* Rojo oscuro */
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #fbc02d; /* Amarillo temático */
    color: #000;
}

main {
    padding: 2rem;
    margin-top: 0; /* Reducir el margen superior del contenido */
    padding-top: 20px; /* Agregar un pequeño padding si es necesario */
}

footer {
    color: #fff;
    background-color: #646464d2; 
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: #fff;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

table th {
    background-color: #0906c5d2; /* Rojo temático */
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #fbc02d; /* Amarillo temático */
}

/* Sombrea los encabezados de la tabla con azul */
.table th, .tabla-dinamica th {
    background: #d2d2d3; /* Azul similar al botón */
    color: #242222;
    font-weight: bold;
    text-align: center;
}

/* Hover de filas: gris suave */
.table tr:hover, .tabla-dinamica tr:hover {
    background: #f2f3f7 !important;
}

/* Opcional: mejora el borde de la tabla */
.table, .tabla-dinamica {
    border-collapse: collapse;
}
.table th, .table td, .tabla-dinamica th, .tabla-dinamica td {
    border: 1px solid #ddd;
    padding: 8px;
}

/* Contenedor de la tabla */
.table-container {
    overflow-x: auto; /* Habilitar desplazamiento horizontal */
    margin-top: 20px;
    border: 1px solid #ddd; /* Borde alrededor del contenedor */
    border-radius: 5px; /* Esquinas redondeadas */
    background-color: #fff; /* Fondo blanco */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra para darle profundidad */
}

/* Tabla */
.table {
    width: 100%; /* Asegurar que la tabla ocupe todo el ancho del contenedor */
    min-width: 400px; /* Forzar un ancho mínimo para habilitar el desplazamiento */
    border-collapse: collapse; /* Eliminar espacios entre celdas */
    font-size: 14px; /* Tamaño de fuente */
}

/* Encabezados de la tabla */
.table th {
    background-color: #0906c5d2; /* Fondo gris claro */
    color: #ffffff; /* Color del texto */
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd; /* Línea inferior */
}

/* Celdas de la tabla */
.table td {
    padding: 10px;
    border-bottom: 1px solid #ddd; /* Línea inferior */
    text-align: left;
}

/* Filas alternas */
.table tr:nth-child(even) {
    background-color: #f9f9f9; /* Fondo gris claro para filas pares */
}

/* Hover en filas */
.table tr:hover {
    background-color: #f1f1f1; /* Fondo más claro al pasar el cursor */
}

/* Iconos en las celdas */
.icon-link {
    text-decoration: none;
    font-size: 16px;
    color: #0906c5d2; /* Azul para los iconos */
    transition: color 0.3s ease;
}

.icon-link:hover {
    color: #0906c5d2; /* Azul más oscuro al pasar el cursor */
}

/* Botones dentro de la tabla */
.button {
    padding: 5px 10px;
    background-color: #0906c5d2;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0906c5d2;
}

/* Botones */
button, a.button {
    background-color: #0906c5d2; /* Rojo temático */
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}

button:hover, a.button:hover {
    background-color: #fbc02d; /* Amarillo temático */
    color: #000;
}

/* Cambiar estilo del botón submit */
button[type="submit"], input[type="submit"] {
    background-color: #d3d3d3; /* Fondo gris claro */
    color: #0906c5d2; /* Letras blancas */
    border: none; /* Sin bordes */
    padding: 0.8rem 1.5rem; /* Espaciado interno */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer; /* Cambiar el cursor al pasar sobre el botón */
    font-size: 1rem; /* Tamaño de fuente */
    font-weight: bold; /* Texto en negrita */
    transition: background-color 0.3s ease; /* Transición suave */
    width: 100%; /* Botón ocupa todo el ancho */
}

button[type="submit"]:hover, input[type="submit"]:hover {
    background-color: #a9a9a9; /* Fondo gris más oscuro al pasar el cursor */
}

/* Estilo para las tarjetas de cliente */
.cliente-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cliente-card fieldset {
    border: 1px solid #0906c5d2;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cliente-card legend {
    font-weight: bold;
    color: #0906c5d2;
}

.cliente-card p {
    margin: 0.5rem 0;
}

.cliente-card .acciones {
    text-align: right;
}

.cliente-card .acciones .button {
    background-color: #0906c5d2;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-left: 0.5rem;
    transition: background-color 0.3s;
}

.cliente-card .acciones .button:hover {
    background-color: #fbc02d;
    color: #000;
}

.cliente-card .form-grid {
    display: grid;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Estilo para formularios con grid */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Espaciado entre secciones */
    margin: 2rem 0;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-grid.cliente-card {
    margin-top: 0; /* Reducir el margen superior */
    padding-top: 10px; /* Ajustar el padding superior */
}

/* Estilo para las filas dentro de fieldset */
.form-grid .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Cuatro columnas por fila */
    gap: 1rem; /* Espaciado entre columnas */
    align-items: center;
}

/* Estilo para cada sección (fieldset) */
.form-grid fieldset {
    border: 1px solid #0906c5d2;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.form-grid fieldset legend {
    font-weight: bold;
    color: #0906c5d2;
    margin-bottom: 1rem;
}

/* Estilo para etiquetas y campos */
.form-grid label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Botón de envío */
.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.form-actions button {
    background-color: #0906c5d2;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    font-weight: bold;
}

.form-actions button:hover {
    background-color: #fbc02d;
    color: #000;
}

/* Responsivo */
@media (max-width: 1024px) {
    .form-grid .row {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .form-grid .row {
        grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
    }

    .form-actions button {
        width: 100%; /* Botón ocupa todo el ancho */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.container .campo {
    display: block;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    border-radius: 5px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
}
.container .campo label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    

}
.button1 {
    background-color: #ffffff00;
    border-bottom: #000000 solid 2px;
    border-radius: 5px;
    width: 10%;
    color: #414141;
    border: none;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}
.button1:hover {
    background-color: #fbc02d;
    border-bottom: #000000 solid 2px;

}
.forms {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Carrusel Moderno */
.banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 32px 0 40px 0;
    position: relative;
    min-height: 320px;
    z-index: 1;
}
.slider {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 260px;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
}
.banner .prev, .banner .next {
    background: #ccc;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner .prev { left: 10px; }
.banner .next { right: 10px; }
.banner .prev:hover, .banner .next:hover {
    background: #007bff;
}
.carousel-indicators {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    z-index: 20;
    justify-content: center;
}
.carousel-indicators .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #bbb;
    transition: background 0.3s;
    cursor: pointer;
}
.carousel-indicators .dot.active {
    background: #007bff;
}
@media (max-width: 900px) {
    .slider { max-width: 98vw; height: 180px; }
}

/* Zona de Login */
.login {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login h2 {
    margin-bottom: 1rem;
    color: #0906c5d2;
}
.login h3 {
    margin-bottom: 1rem;
    color: #777777;
    font-size: 18px;
    font-weight: bold;
    text-align: left; 
    font-family: 'Arial', sans-serif;
    
}

.login h4{
    margin-bottom: 1rem;
    color: #0906c5d2;
    font-size: 20px;
}
.login form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login label {
    font-weight: bold;
}

.login input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.login button {
    background-color: #0906c5d2;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login button:hover {
    background-color: #fbc02d;
    color: #000;
}

.login a {
    color: #0906c5d2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.login a:hover {
    color: #0906c5d2;
}

/* Botón estilizado para Regístrate */
.login .button {
    display: inline-block;
    background-color: #0906c5d2; /* Azul */
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 1rem;
}

.login .button:hover {
    background-color: #0906c5d2; /* Rojo */
    color: #fff;
}

/* Zona de Novedades */
.novedades {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.novedades h2 {
    margin-bottom: 1rem;
    color: #0906c5d2;
}

.novedades ul {
    list-style: none;
    padding: 0;
}

.novedades ul li {
    margin-bottom: 0.5rem;
}

.novedades ul li a {
    text-decoration: none;
    color: #0906c5d2;
    transition: color 0.3s;
}

.novedades ul li a:hover {
    color: #0906c5d2;
}

/* Zona de Solicitud de Servicios */
.solicitud-servicios {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.solicitud-servicios h2 {
    margin-bottom: 1rem;
    color: #0906c5d2;
}

.solicitud-servicios form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solicitud-servicios label {
    font-weight: bold;
}

.solicitud-servicios input,
.solicitud-servicios select,
.solicitud-servicios textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.solicitud-servicios button {
    background-color: #0906c5d2;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.solicitud-servicios button:hover {
    background-color: #fbc02d;
    color: #000;
}

/* Estilos para el formulario de búsqueda */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-form input[type="text"] {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 20px;
    background-color: #0906c5d2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0906c5d2;
}

/* Diseño general de la página */
.layout {
    display: flex;
    flex-wrap: wrap;
}

/* Barra lateral */
.sidebar {
    width: 400px;
    background-color: #ffffff91;
    color: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h1 {
    font-size: 1.5rem;
    color: #0906c5d2;
    margin-bottom: 1rem;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}
.sidebar .button1 {
    background-color: #d3d3d3e0;
    color: #0906c5d2;
    padding: 10px 145px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    padding-left: 50px; 
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 0.2rem;
}

.sidebar ul li a {
    text-decoration: none;
    color: #0906c5d2;
    font-weight: bold;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #0906c5d2;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.sidebar-menu a i {
    margin-right: 10px;
}

/* Contenido principal */
.main-content {
    flex: 1;
    padding: 36px 36px 0 36px;
    min-width: 0;
    max-width: 900px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    background-color: #ffffff;
    color: #747171;
    padding: 5px 2px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero .button {
    background-color: #fff;
    color: #b9b9b9;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.hero .button:hover {
    background-color: #f4f4f4;
}

/* Características */
.features {
    margin-bottom: 20px;
}

.features h2 {
    text-align: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 50px; /* Tamaño del ícono */
    color: #007bff; /* Color del ícono */
    margin-bottom: 15px; /* Espaciado debajo del ícono */
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.feature:hover i {
    transform: scale(1.2); /* Aumentar el tamaño del ícono al pasar el cursor */
    color: #fbc02d; /* Cambiar el color del ícono al pasar el cursor */
}

.feature h3 {
    font-size: 18px; /* Tamaño del título */
    margin-bottom: 10px;
    color: #333; /* Color del texto */
    text-decoration: none;
}

.feature p {
    font-size: 14px; /* Tamaño del texto */
    color: #666; /* Color del texto */
    text-decoration: none;
}

/* Llamado a la acción */
.cta {
    text-align: center;
    background-color: #ffffff;
    color: #b9b9b9;
    padding: 30px 20px;
    border-radius: 10px;
}

.cta h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.cta p {
    font-size: 16px;
    margin-bottom: 20px;
}

.cta .button {
    background-color: #d3d3d3e0;
    color: #0906c5d2;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.cta .button:hover {
    background-color: #f4f4f4;
}

/* Contenedor de la cuadrícula */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Estilo de cada opción */
.feature {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Eliminar subrayado del enlace */
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 50px;
    color: #007bff;
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature:hover i {
    transform: scale(1.2);
    color: #fbc02d;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
}

.feature p {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-decoration: none;
}

/* Botón de volver al inicio */
.config-footer .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0906c5d2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.config-footer .button:hover {
    background-color: #171718d2;
}

/* Responsivo */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 10px;
    }

    .menu {
        display: none; /* Ocultar el menú por defecto */
        flex-direction: column;
        background-color: #f8f9fa; /* Fondo claro */
        position: fixed; /* Fijar el menú para que no se superponga al contenido */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Ocupa toda la pantalla */
        padding-top: 60px; /* Espacio para el botón de hamburguesa */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .menu ul li {
        margin: 15px 0;
    }

    .menu ul li a {
        color: #333; /* Texto oscuro */
        font-size: 18px; /* Tamaño de texto más grande */
        padding: 10px 20px;
        border-radius: 5px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .menu ul li a:hover {
        background-color: #0906c5d2; /* Rojo temático */
        color: #fff; /* Texto blanco */
    }

    .menu-toggle {
        display: block; /* Mostrar el botón de hamburguesa */
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1100;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle .hamburger {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #333; /* Color oscuro */
        position: relative;
    }

    .menu-toggle .hamburger::before,
    .menu-toggle .hamburger::after {
        content: '';
        display: block;
        width: 30px;
        height: 3px;
        background-color: #333; /* Color oscuro */
        position: absolute;
        left: 0;
    }

    .menu-toggle .hamburger::before {
        top: -8px;
    }

    .menu-toggle .hamburger::after {
        top: 8px;
    }

    .menu.active {
        display: flex; /* Mostrar el menú cuando está activo */
    }
}

/* Ajuste área principal y tabla dinámica para mejor visualización y scroll responsive */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

@media (max-width: 1200px) {
    .main-content {
        max-width: 100%;
        padding: 16px 4px;
    }
    .tabla-dinamica-container {
        overflow-x: auto;
        width: 100%;
    }
    .tabla-dinamica {
        min-width: 900px;
    }
}

.tabla-dinamica-container {
    overflow-x: auto;
    width: 100%;
}

.tabla-dinamica {
    width: 100%;
    min-width: 900px;
}

/* General container for forms */
.form-container {
    max-width: 1100px;
    text-align: left;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form title */
.form-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Form group */
.form-group {
    margin-bottom: 15px;
}

/* Form labels */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Form inputs */
.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Form button */
.form-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0906c5d2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #fbc02d;
}

/* Form footer links */
.form-footer {
    text-align: center;
    margin-top: 15px;
}

.form-link {
    color: #171718d2;
    text-decoration: none;
    font-size: 14px;
}

.form-link:hover {
    text-decoration: underline;
}

/* Contenedor general de configuración */
.config-container {
    max-width: 800px;
    margin: 50px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Título de configuración */
.config-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Menú de configuración */
.config-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.config-menu li {
    margin-bottom: 15px;
}

.config-link {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #0906c5d2;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #0906c5d2;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 30%;
}

.config-link:hover {
    background-color: #fbc02d;
    color: #0906c5d2;
}

/* Botón de volver */
.config-footer .button {
    text-decoration: none;
    color: white;
    background-color: #171718d2;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.config-footer .button:hover {
    background-color: #fbc02d;
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="checkbox"] {
    margin-right: 10px;
}

.btn-save {
    background-color: #0906c5d2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background-color: #0906c5d2;
}

.button {
    text-decoration: none;
    color: white;
    background-color: #0906c5d2;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0906c5d2;
}

/* Estilos generales del menú */
nav.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: relative;
    z-index: 1000; /* Asegura que el menú esté por encima de otros elementos */
}

nav.menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.menu ul li {
    margin: 0 10px;
}

nav.menu ul li a {
    text-decoration: none;
    color: #000;
}

/* Botón de menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1100;
}

.menu-toggle .hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #000;
    position: relative;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #000;
    position: absolute;
    left: 0;
}

.menu-toggle .hamburger::before {
    top: -8px;
}

.menu-toggle .hamburger::after {
    top: 8px;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .menu {
        display: none; /* Ocultar el menú por defecto */
        flex-direction: column;
        background-color: #f8f9fa; /* Fondo claro */
        position: fixed; /* Fijar el menú para que no se superponga al contenido */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Ocupa toda la pantalla */
        padding-top: 60px; /* Espacio para el botón de hamburguesa */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .menu ul li {
        margin: 15px 0;
    }

    .menu ul li a {
        color: #333; /* Texto oscuro */
        font-size: 18px; /* Tamaño de texto más grande */
        padding: 10px 20px;
        border-radius: 5px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .menu ul li a:hover {
        background-color: #0906c5d2; /* Rojo temático */
        color: #fff; /* Texto blanco */
    }

    .menu-toggle {
        display: block; /* Mostrar el botón de hamburguesa */
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 1100;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle .hamburger {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #333; /* Color oscuro */
        position: relative;
    }

    .menu-toggle .hamburger::before,
    .menu-toggle .hamburger::after {
        content: '';
        display: block;
        width: 30px;
        height: 3px;
        background-color: #333; /* Color oscuro */
        position: absolute;
        left: 0;
    }

    .menu-toggle .hamburger::before {
        top: -8px;
    }

    .menu-toggle .hamburger::after {
        top: 8px;
    }

    .menu.active {
        display: flex; /* Mostrar el menú cuando está activo */
    }
}

/* Tabla responsiva */
.table-responsive {
    overflow-x: auto; /* Habilitar desplazamiento horizontal */
    -webkit-overflow-scrolling: touch; /* Suavizar desplazamiento en dispositivos táctiles */
}

.table {
    width: 100%; /* Asegurar que la tabla ocupe el ancho completo del contenedor */
    border-collapse: collapse;
}

.table th, .table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd; /* Opcional: agregar bordes a las celdas */
}

.table th {
    background-color: #0906c5d2; /* Opcional: color de fondo para encabezados */
}

/* --- Estilos para el formulario de gestión de visita --- */
.container {
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(44,62,80,0.07);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}
p {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
}
form {
    width: 90%;
}
fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 18px 14px 10px 14px;
    background: #fafbfc;
}
legend {
    font-weight: bold;
    color: #2c3e50;
    padding: 0 8px;
    font-size: 1.08em;
}
label {
    display: block;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1em;
}
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 7px 10px;
    margin-top: 3px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #0906c5d2;
    outline: none;
}
input[type="checkbox"], input[type="radio"] {
    margin-right: 7px;
    accent-color: #0906c5d2;
}
button[type="submit"] {
    background: #0906c5d2;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    transition: background 0.2s;
}
button[type="submit"]:hover {
    background: #0906c5d2;
}
@media (max-width: 600px) {
    .container {
        max-width: 98vw;
        padding: 10px 2vw;
    }
    fieldset {
        padding: 10px 4px 6px 4px;
    }
    label, legend {
        font-size: 0.98em;
    }
    button[type="submit"] {
        width: 100%;
        padding: 12px 0;
        font-size: 1em;
    }
}

/* Estilo para formularios multicolumna */
.form-multicol {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-multicol .form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .container {
        max-width: 98vw;
        padding: 10px 2vw;
    }
    .form-multicol .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
.form-multicol label {
    margin-bottom: 0;
}
fieldset {
    margin-bottom: 18px;
}
.form-multicol .form-row > div {
    min-width: 80px;
}

.campo-pequeno input,
.campo-pequeno select {
    max-width: 100px;
    min-width: 60px;
    display: inline-block;
}
.btn-principal {
    background: #2980b9;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 18px 0;
    width: 320px;
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    transition: background 0.2s;
}
.btn-principal:hover {
    background: #0906c5d2;
}
.bloque-seccion {
    border: 2px solid #6d6a6a;
    border-radius: 6px;
    padding: 18px 12px 8px 12px;
    margin-bottom: 28px;
    margin-top: 10px;
    background: #fff;
}

/* Estilos para las pestañas */
.tabs { margin-bottom: 30px; }
.tab-titles { display: flex; list-style: none; padding: 0; margin: 0 0 10px 0; border-bottom: 2px solid #eee; }
.tab-titles li {
    padding: 10px 24px;
    cursor: pointer;
    border: 1px solid #eee;
    border-bottom: none;
    background: #f9f9f9;
    margin-right: 4px;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
}
.tab-titles li.active {
    background: #fff;
    border-bottom: 2px solid #fff;
    color: #2980b9;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.seccion-box {
    border: 2px solid #b2b2b2;
    padding: 1em;
    margin-bottom: 1em;
    background: #fafcff;
}
.seccion-titulo {
    font-weight: bold;
    margin-bottom: 0.5em;
}
.subseccion-titulo {
    font-weight: bold;
    margin-bottom: 0.5em;
    background: #f5f5f5;
    padding: 0.3em 0.7em;
}
.campo-formulario {
    margin-bottom: 1em;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-right: 1em;
}
.campo-ancho-1 { width: 8.33%; }
.campo-ancho-2 { width: 16.66%; }
.campo-ancho-3 { width: 25%; }
.campo-ancho-4 { width: 33.33%; }
.campo-ancho-5 { width: 41.66%; }
.campo-ancho-6 { width: 50%; }
.campo-ancho-7 { width: 58.33%; }
.campo-ancho-8 { width: 66.66%; }
.campo-ancho-9 { width: 75%; }
.campo-ancho-10 { width: 83.33%; }
.campo-ancho-11 { width: 91.66%; }
.campo-ancho-12 { width: 100%; }

/* Responsivo para campos dentro de secciones */
@media (max-width: 900px) {
    .seccion-box {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .seccion-box .campo-formulario {
        width: 48% !important;
        min-width: 160px;
        padding-right: 0.5em;
    }
}
@media (max-width: 600px) {
    .seccion-box {
        flex-direction: column;
        gap: 0;
    }
    .seccion-box .campo-formulario {
        width: 100% !important;
        min-width: 0;
        padding-right: 0;
    }
}
.tabla-responsive {
    width: 100%;
    overflow-x: auto;
}

.tabla-responsive table {
    min-width: 600px; /* o el ancho mínimo que necesites */
    width: 100%;
    border-collapse: collapse;
}
.empresa-list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0 2em 0;
    max-width: 400px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.06);
}

.empresa-list li {
    border-bottom: 1px solid #e3e3e3;
    padding: 14px 18px;
    font-size: 1.08em;
    color: #2c3e50;
    background: #fff;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empresa-list li:last-child {
    border-bottom: none;
}

.empresa-list li::before {
    content: "🏢";
    font-size: 1.1em;
    color: #0906c5d2;
    margin-right: 8px;
    opacity: 0.7;
}

.empresa-list li:hover {
    background: #f5f8fa;
}

/* Estilos para gestión de banners */
.banner-admin-container {
    max-width: 900px;
    margin: 2em auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    padding: 2em;
}

.banner-admin-container h2 {
    margin-bottom: 1.5em;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.banner-admin-container form {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    align-items: flex-end;
    margin-bottom: 2em;
}

.banner-admin-container form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: #34495e;
    min-width: 180px;
    margin-bottom: 0.5em;
}

.banner-admin-container form input[type="text"],
.banner-admin-container form input[type="number"],
.banner-admin-container form select {
    padding: 7px 10px;
    border: 1px solid #d1e3ee;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 4px;
}

.banner-admin-container form input[type="file"] {
    margin-top: 4px;
}

.banner-admin-container form button {
    padding: 8px 22px;
    background: #0906c5d2;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5em;
    transition: background 0.2s;
}
.banner-admin-container form button:hover {
    background: #0906c5d2;
}

.banner-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
}

.banner-admin-table th, .banner-admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e3e3e3;
    text-align: left;
    font-size: 1em;
}

.banner-admin-table th {
    background: #f5f8fa;
    color: #2c3e50;
    font-weight: 600;
}

.banner-admin-table tr:last-child td {
    border-bottom: none;
}

.banner-admin-table img {
    max-height: 60px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.08);
    background: #fff;
    padding: 2px;
}

.banner-admin-table a {
    color: #0906c5d2;
    font-weight: 600;
    text-decoration: none;
    margin-right: 10px;
}

.banner-admin-table a:hover {
    text-decoration: underline;
}
.config-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 32px;
    align-items: end;
}

.config-form-grid label {
    display: block;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 4px;
}

.config-form-grid input[type="text"],
.config-form-grid input[type="number"],
.config-form-grid input[type="password"],
.config-form-grid select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1e3ee;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 8px;
}

.config-form-grid input[type="checkbox"] {
    margin-right: 8px;
}

.config-form-grid .button {
    grid-column: span 2;
    width: 200px;
    justify-self: center;
    margin-top: 1em;
}

/* Coverflow Carousel */
.banner-coverflow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px 0 40px 0;
    width: 100%;
    min-height: 300px;
}
.coverflow-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 720px;
    height: 340px;
    position: relative;
    perspective: 900px;
    overflow: visible;
}
.coverflow-slide {
    width: 660px;
    height: 320px;
    margin: 0 -32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0.5;
    transform: scale(0.85);
    transition: 
        transform 0.4s cubic-bezier(.4,2,.6,1), 
        opacity 0.4s cubic-bezier(.4,2,.6,1), 
        z-index 0s;
    z-index: 1;
}
.coverflow-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}
.coverflow-slide.active {
    opacity: 1;
    transform: scale(1.1) translateY(-10px);
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.coverflow-slide.left, .coverflow-slide.right {
    opacity: 0.8;
    transform: scale(0.95) translateY(0) rotateY(18deg);
    z-index: 2;
}
.coverflow-slide.left {
    transform: scale(0.95) translateY(0) rotateY(18deg) translateX(-30px);
}
.coverflow-slide.right {
    transform: scale(0.95) translateY(0) rotateY(-18deg) translateX(30px);
}
.coverflow-prev, .coverflow-next {
    background: #eee;
    border: none;
    color: #333;
    font-size: 2rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    margin: 0 12px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.coverflow-prev:hover, .coverflow-next:hover {
    background: #007bff;
    color: #fff;
}
@media (max-width: 700px) {
    .banner-coverflow {
        min-height: 160px;
        margin: 16px 0 24px 0;
        padding: 0 2vw;
    }
    .coverflow-slider {
        width: 98vw;
        max-width: 98vw;
        height: 140px;
        min-height: 120px;
        padding: 0;
    }
    .coverflow-slide {
        width: 120px;
        height: 110px;
        margin: 0 -8px;
        border-radius: 10px;
    }
    .coverflow-slide img {
        border-radius: 10px;
    }
    .coverflow-prev, .coverflow-next {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        margin: 0 4px;
    }
}
.seccion-pestana {
    border: 1px solid #bebee4;
    width: 100%;
    margin: 40px auto;
    max-width: 1100px;
    border-radius: 7px;
    background: #f9fcfd62;
    padding: 1em;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    
    align-items: center;
}
.form-row {
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    margin: 40px auto;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}
.campo-formulario {
    margin-bottom: 1em;
}
.seccion-pestana h3, .seccion-pestana h4 {
    margin-top: 0;
    font-weight: bold;
    color: #222;
    margin-bottom: 18px;
}
.formulario-contenedor {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0001;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 900px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .campo-formulario {
        width: 100% !important;
        margin: auto;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-right: 0;
        box-sizing: border-box;
    }
    .formulario-contenedor {
        padding: 24px 8px;
    }
    .seccion-pestana {
        max-width: 100%;
        padding: 0.5em;
    }
}
@media (max-width: 600px) {
    .formulario-contenedor {
        padding: 10px 2vw;
    }
    .seccion-pestana {
        padding: 0.3em;
    }
    .campo-formulario {
        margin-bottom: 0.7em;
    }
}

/* Ajuste tabla dinámica y área de pantalla */
.tabla-dinamica input[type="text"],
.tabla-dinamica input[type="number"],
.tabla-dinamica input[type="date"] {
    width: 120px;
    padding: 6px 10px;
    font-size: 1.05em;
}
.tabla-dinamica input[name*="[Valor]"] {
    width: 160px;
}
.tabla-dinamica th, .tabla-dinamica td {
    padding: 12px 14px;
    text-align: center;
}
.form-section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 32px 24px 32px;
}

