:root {
    --primary-color: #72B42C;/*color estardar de la empresa verde */
    --primary-dark: #000000; /* color estardar de la empresa negro */
    --light-color: #f7f7f7; /* Fondo claro */
    --white: #FFFFFF;
    --column-light: #72b42c4b; /* Color para columnas alternas */
    --column-dark: #81838541; /* Color para columnas alternas */
}

/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--primary-dark);
    background-color: var(--light-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y logo */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px #0000001a;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    justify-content: left;
    align-items: center;
    margin-bottom: 10px;
}

.logo-img {
    max-width: 250px;
    height: auto;
}

/* Contenido principal */
.main-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 15px #0000000d;
    margin-bottom: 40px;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

h2 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

/* Formulario de búsqueda */
.search-form {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--white);
    border-radius: 15px;
    border-color: #6aaf30;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Botones */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--primary-dark);
}

/* Divisor */
.divider {
    border-top: 2px dashed var(--primary-color);
    margin: 30px 0;
    opacity: 0.5;
}

/* Tabla de resultados */
.results-container {
    margin-top: 30px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

th {
    background-color: var(--primary-dark);
    color: var(--white) ;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;

}
th:nth-child(7),
th:nth-child(6){
    background-color: #5f9625;
}

td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 3px solid var(--white);
}

/* Colores alternados para columnas */
td:nth-child(1),  /* Código */
td:nth-child(3),  /* Largo */
td:nth-child(5),  /* Alto */
td:nth-child(7) { /* Precio por Millar */
    background-color: var(--column-light);
}

td:nth-child(2),  /* Modelo */
td:nth-child(4),  /* Ancho */
td:nth-child(6) { /* Precio por Ciento */
    background-color: var(--column-dark);
}

/* Efecto hover para filas */
tr:hover td {
    background-color: var(--primary-color) !important;
}

/* Mensajes */
.success {
    color: #0fb100;
    margin-top: 15px;
}

.error {
    color: #ff1900;
    margin-top: 15px;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .logo-img {
        max-width: 200px;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* Estilos específicos para la página de agregar modelo */
.model-form {
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
}

.model-form .form-row {
    margin-bottom: 20px;
}

.model-form .form-buttons {
    justify-content: flex-start;
}

/* Estilos para la tabla de modelos registrados */
#modelos-registrados {
    margin-top: 20px;
}

#modelos-registrados th {
    background-color: #000 !important;
    color: #fff !important;
}

/* Colores alternados para columnas */
#modelos-registrados td:nth-child(1),  /* Código */
#modelos-registrados td:nth-child(3),  /* Largo */
#modelos-registrados td:nth-child(5),  /* Alto */
#modelos-registrados td:nth-child(7) { /* Precio por Millar */
    background-color: var(--column-light);
}

#modelos-registrados td:nth-child(2),  /* Modelo */
#modelos-registrados td:nth-child(4),  /* Ancho */
#modelos-registrados td:nth-child(6), /* Precio por Ciento */
#modelos-registrados td:nth-child(8) {
    background-color: var(--column-dark);
}

/* Estilos para botones de acción */
.acciones {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

.btn-edit {
    color: #72B42C;
}

.btn-delete {
    color: #ff1900;
}

.btn-hide {
    color: #818385;
}

.btn-action:hover {
    transform: scale(1.2);
}

/* Agregar al final del archivo */
.checkboxes {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.checkboxes input[type="checkbox"] {
    width: auto;
    margin: 0;
}

#campos-dinamicos {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.fila-seleccionada {
    background-color: #818385 !important;
}



/* Estilos para el recuadro de incentivo */
.incentivo-container {
    position: fixed; /* Cambiado a fixed para que sea visible siempre */
    top: 10px;
    left: 10px; /* Cambiado a izquierda */
    z-index: 1000; /* Aumentado el z-index para que esté por encima de todo */
    max-width: 150px;
    pointer-events: none; /* Para que no interfiera con clicks en elementos debajo */
}

.incentivo-borde {
    position: relative;
    border-radius: 100px;
    overflow: hidden;
    padding: 3px;
    animation: cambioColorBorde 5s infinite alternate;
    animation-timing-function: ease-in-out;
    transition: background 0.5s ease-in-out;
    box-shadow: 0 4px 10px #000000; /* Sombra para mejor visibilidad */
}

@keyframes cambioColorBorde {
    0% { background: linear-gradient(45deg, #FF5E5E, #FF2525);}     /* Rojo pasión - inicio */
    10% { background: linear-gradient(45deg, #FF8C42, #FF5E00);}    /* Naranja energía */
    20% { background: linear-gradient(45deg, #FFD166, #FFB627);}    /* Amarillo optimismo */
    30% { background: linear-gradient(45deg, #06D6A0, #04A777);}    /* Verde crecimiento */
    40% { background: linear-gradient(45deg, #118AB2, #0A5E7D);}    /* Azul confianza */
    50% { background: linear-gradient(45deg, #073B4C, #052D39);}    /* Azul profundo - enfoque */
    60% { background: linear-gradient(45deg, #7209B7, #560BAD);}    /* Púrpura creatividad */
    70% { background: linear-gradient(45deg, #F72585, #B5179E);}    /* Rosa motivación */
    80% { background: linear-gradient(45deg, #3A0CA3, #4361EE);}    /* Azul real - éxito */
    90% { background: linear-gradient(45deg, #4CC9F0, #4895EF);}    /* Azul cielo - libertad */
    100% { background: linear-gradient(45deg, #F72585, #7209B7);}   /* Combinación ganadora */
}

.incentivo-imagen {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.incentivo-texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 5px 5px 20px #000000;
    text-align: center;
    pointer-events: auto; /* Permite interacción con el texto si es necesario */
}

/* Responsive para el incentivo */
@media (max-width: 768px) {
    .incentivo-container {
        top: 10px;
        left: 10px;
        max-width: 120px;
    }
    
    .incentivo-texto {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .incentivo-container {
        max-width: 100px;
    }
    
    .incentivo-texto {
        font-size: 2rem;
    }
}



.modelo-oculto td {
    background-color: #818385 !important;
    color: #ffffff;
    opacity: 0.7;
}

.modelo-oculto:hover td {
    background-color: #6b6c6d !important;
}

.modelo-oculto .btn-action {
    color: #ffffff !important;
}

