*,
*.before,
*.after {
    box-sizing: inherit;
}


body {
    background: linear-gradient(to right, #6c757d, #5a6268);
    color: #000;
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;

}

h2 {
    color: #000;
    font-size: 22px;
    margin: 15px;
    text-align: center;
}

.group {
    border: 1px solid #036;
    padding: 20px;
    width: 95%;

    color: #006;
    border-radius: 8px;
    background: #fff;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.table-container {
    overflow-x: auto;
    margin: 20px auto;
    width: 95%;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: white;
}

/* Estilo para tablas pequeñas (formularios) */
table:first-of-type {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #ef4623;
}

table:first-of-type th {
    background: transparent;
    color: #ef4623;
    font-weight: 600;
    border-bottom: 2px solid #ef4623;
}

table:first-of-type td {
    background: transparent;
    padding: 16px 12px;
}

/* Efecto de carga suave */
table {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Eliminado el indicador de fila activa para evitar movimientos */

table {
    border-collapse: collapse;
    max-width: 100%;
    width: 90%;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table th {
    background: linear-gradient(135deg, #ef4623, #d63916);
    color: white;
    border: none;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    /* Sin efectos hover para evitar movimientos */
}

table th:first-child {
    border-top-left-radius: 10px;
}

table th:last-child {
    border-top-right-radius: 10px;
}

table td {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
}

table tr {
    transition: background-color 0.2s ease;
    position: relative;
}

table tr:hover {
    background-color: rgba(239, 70, 35, 0.05);
    /* Solo un sombreado muy tenue, sin movimientos ni efectos complejos */
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

table tr:nth-child(even):hover {
    background-color: rgba(239, 70, 35, 0.08);
}

.content {
    flex-direction: row;
    gap: 30px;
}

/* Estilos modernos para botones con iconos */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    margin: 2px;
}

.icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.icon-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* Botón crear - Verde */
.create-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.create-btn:hover {
    background: linear-gradient(135deg, #218838, #1dd1a1);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Botón prospectos - Azul */
.prospects-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.prospects-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Botón borrar - Rojo */
.delete-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Botón salir - Con texto e icono */
.exit-btn {
    width: auto;
    height: auto;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #6e6d6a, #5a5958);
    color: white;
    gap: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exit-btn:hover {
    background: linear-gradient(135deg, #5a5958, #4a4948);
    box-shadow: 0 8px 25px rgba(110, 109, 106, 0.4);
}

.exit-btn span {
    font-size: 14px;
}

/* Botón regresar - Con texto e icono */
.back-btn {
    width: auto;
    height: auto;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    gap: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.back-btn span {
    font-size: 14px;
}

/* Efecto ripple en los botones */
.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.icon-btn:active::before {
    width: 120%;
    height: 120%;
}

/* Tooltips mejorados */
.icon-btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.form-btn {
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, #ef4623, #d63916);
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 70, 35, 0.3);
    display: inline-block;
    margin: 2px;
}

.form-btn:hover {
    background: linear-gradient(135deg, #d63916, #c12e0a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 70, 35, 0.4);
}

.form-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 70, 35, 0.3);
}

.menu,
.abajo {
    height: auto;
    background-color: #ffffff;
    padding: 20px;
}

.title1 {
    height: auto;
    background: linear-gradient(to right, #ef4623, #6e6d6a);
}

select {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 140px;
}

select:hover {
    border-color: #ef4623;
    box-shadow: 0 2px 8px rgba(239, 70, 35, 0.2);
}

select:focus {
    outline: none;
    border-color: #ef4623;
    box-shadow: 0 0 0 3px rgba(239, 70, 35, 0.1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    justify-items: center;
}

.image-grid img {
    max-width: 170px;
    max-height: 170px;
}


@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h2 {
        font-size: 20px;
    }

    .group {
        padding: 20px;
        width: 95%;
    }

    .form-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* Iconos más pequeños en tablet */
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .exit-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .menu,
    .abajo {
        padding: 15px;
    }

    .title1 {
        padding: 15px;
    }

    select {
        font-size: 12px;
        padding: 10px 12px;
        min-width: 120px;
    }

    table {
        width: 100%;
        font-size: 12px;
    }

    table th,
    table td {
        padding: 10px 8px;
    }

    .content {
        flex-direction: row;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    h2 {
        font-size: 18px;
    }

    .group {
        padding: 10px;
        width: 100%;
    }

    .form-btn {
        padding: 6px 10px;
        font-size: 10px;
    }

    /* Iconos más pequeños en móvil */
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .exit-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Desactivar algunos efectos en móvil para mejor rendimiento */
    .icon-btn:hover {
        transform: scale(1.05);
    }

    .icon-btn:hover::after {
        display: none; /* Ocultar tooltips en móvil */
    }

    .menu,
    .abajo {
        padding: 10px;
    }

    .title1 {
        padding: 10px;
    }

    select {
        font-size: 10px;
        padding: 8px 10px;
        min-width: 100px;
    }

    table {
        width: 100%;
        font-size: 10px;
    }

    table th,
    table td {
        padding: 8px 6px;
    }

    /* En móviles, mantener efectos simples */
    table tr:hover {
        background-color: rgba(239, 70, 35, 0.03); /* Aún más sutil en móviles */
    }

    .content {
        flex-direction: column;
        gap: 30px;
    }
}