body {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.card-shadow {
    box-shadow: 0 20px 40px rgba(9, 147, 151, 0.15);
}

.hover-lift:hover {
    transform: translateY(-4px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(9, 147, 151, 0.2);
}

.notif-wrapper {
    position: relative;
}

#notificacionesPanel {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    background: #f7f7f8;
    border: 1px solid rgba(61, 182, 170, .35);
    border-radius: 12px;
    width: 340px;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

#notificacionesPanel.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* Header fijo */
.panel-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    flex-shrink: 0;
    /* 👈 evita que se comprima */
}

/* Título */
.notificaciones-title {
    justify-content: center;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #099397;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Lista con SCROLL */
#listaNotificaciones {
    list-style: none;
    margin: 0;
    padding: 1rem;
}

/* Items */
#listaNotificaciones li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

#listaNotificaciones li:last-child {
    border-bottom: none;
}

/* Scroll bonito */
#listaNotificaciones::-webkit-scrollbar {
    width: 6px;
}

#listaNotificaciones::-webkit-scrollbar-thumb {
    background: rgba(9, 147, 151, 0.5);
    border-radius: 6px;
}

.table-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(9, 147, 151, 0.1);
    border: 2px solid rgba(61, 182, 170, 0.2);
    position: relative;
    overflow: hidden;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #099397, #f1ec3d, #78c39d);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #078084;
}

.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.data-table tr:hover {
    background-color: rgba(9, 147, 151, 0.05);
}


.delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tab-button {
    padding: 1rem 2rem;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;

}

.tab-button.active {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: white;
    border-color: #099397;
    box-shadow: 0 8px 20px rgba(9, 147, 151, 0.3);
}

.tab-button:not(.active) {
    background: white;
    color: #099397;
    border-color: #e5e7eb;
}

.tab-button:not(.active):hover {
    background: rgba(9, 147, 151, 0.05);
    border-color: #3db6aa;
    transform: translateY(-2px);
}

.filter-section {
    background: rgba(9, 147, 151, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(61, 182, 170, 0.2);
}

.export-button {
    background: linear-gradient(135deg, #099397);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(241, 236, 61, 0.3);
}

.export-button:hover {
    background: linear-gradient(135deg, #78c39e);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(241, 236, 61, 0.4);
}

.Actualizar {
    background: linear-gradient(135deg, #099397);
    color: #fdffff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(241, 236, 61, 0.3);
}

.Actualizar:hover {
    background: linear-gradient(135deg, #78c39e);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(241, 236, 61, 0.4);
}

.back-button {
    background: linear-gradient(135deg, #78c39d, #afd962);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(120, 195, 157, 0.3);
}

.back-button:hover {
    background: linear-gradient(135deg, #6bb88a, #9bc955);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(120, 195, 157, 0.4);
}

.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(9, 147, 151, 0.1);
    border: 2px solid rgba(61, 182, 170, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #099397, #f1ec3d, #78c39d);
}
.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #099397, #3db6aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #78c39d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.calendar-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(9, 147, 151, 0.12);
    border: 2px solid rgba(61, 182, 170, 0.15);
    position: relative;
    overflow: hidden;
}

.calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #099397, #f1ec3d, #78c39d, #e1e653);
}

.calendar-header {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(9, 147, 151, 0.2);
}

.calendar-nav {
    background: rgba(9, 147, 151, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(61, 182, 170, 0.1);
}

.calendar-grid {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(9, 147, 151, 0.08);
    border: 2px solid rgba(61, 182, 170, 0.1);
}

.calendar-day-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #78c39d;
    font-weight: 700;
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid #e2e8f0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    padding: 0.5rem;
}

.calendar-day:hover {
    background: linear-gradient(135deg, rgba(9, 147, 151, 0.03), rgba(61, 182, 170, 0.05));
    border-color: #3db6aa;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(9, 147, 151, 0.1);
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(9, 147, 151, 0.1), rgba(61, 182, 170, 0.08));
    border: 2px solid #099397;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(9, 147, 151, 0.15);
}

.calendar-day.other-month {
    color: #9ca3af;
    background: #f9fafb;
}

.calendar-day-number {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.calendar-day.today .calendar-day-number {
    color: #099397;
    font-size: 1.2rem;
}

.visit-item {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: rgb(0, 0, 0);
    padding: 0.25rem 0.375rem;
    border-radius: 6px;
    font-size: 0.65rem;
    margin: 0.125rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(9, 147, 151, 0.2);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    line-height: 1.2;
}

.visit-item:hover {
    background: linear-gradient(135deg, #078084, #010b0a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 147, 151, 0.3);
}

.visit-item.programada {
    background: linear-gradient(135deg, #26979b, #099397);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.visit-item.pendiente {
    background: linear-gradient(135deg, #ece85e, #f1ec3d);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.visit-item.completada {
    background: linear-gradient(135deg, #8ecbac, #78c39d);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.visit-item.cancelada {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.visit-time {
    font-size: 0.6rem;
    opacity: 0.9;
    font-weight: 400;
}

.pending-visit-card {
    background: linear-gradient(135deg, rgba(9, 147, 151, 0.1), rgba(61, 182, 170, 0.05));
    border: 2px solid rgb(120, 195, 157);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pending-visit-card:hover {
    background: linear-gradient(135deg, rgba(61, 182, 170, 0.05), rgba(9, 147, 151, 0.1));
    border-color: rgb(120, 195, 157);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(120, 195, 157);
}

.priority-client-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.priority-client-card:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

.priority-badge {
    background: linear-gradient(135deg, #e1e653, #78c39d);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(120, 195, 158, 0.628);
}

.days-until {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.days-until.urgent {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    animation: pulse 2s infinite;
}

.days-until.soon {
    background: linear-gradient(135deg, #78c39d, #e1e653);
}

.days-until.normal {
    background: linear-gradient(135deg, #3db6aa, #099397);
}

.modal {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 24px;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(61, 182, 170, 0.1);
}

.legend-container {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.6));
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px solid rgba(61, 182, 170, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(9, 147, 151, 0.05);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #78c39d;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-color: #3db6aa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 147, 151, 0.1);
}

.nav-button:active {
    transform: translateY(0);
}

.today-button {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: white;
    border: 2px solid #099397;
}

.today-button:hover {
    background: linear-gradient(135deg, #078084, #359a8e);
    border-color: #078084;
}

.action-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.action-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

.secondary-button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 20px rgb(9, 147, 151, 0.3);
}

.secondary-button:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 12px 25px rgb(9, 147, 151, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .table-container,
    .calendar-container {
        padding: 1rem;
        overflow-x: auto;
    }

    .data-table {
        min-width: 2000px;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .filter-section .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .stats-card {
        padding: 1rem;
    }

    .table-container h2 {
        font-size: 1.5rem;
    }

    .flex.space-x-4 {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flex.space-x-4>* {
        margin: 0;
    }

    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .calendar-nav {
        padding: 1rem;
    }

    .calendar-header {
        padding: 1rem;
    }

    #visitsDashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pending-visit-card,
    .priority-client-card {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.25rem;
    }

    .table-container,
    .calendar-container {
        padding: 0.75rem;
        margin: 0.5rem 0;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .filter-section {
        padding: 0.75rem;
    }



    .delete-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .export-button,
    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .Actualizar,
    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }

    .visit-item {
        font-size: 0.65rem;
        padding: 0.25rem 0.375rem;
    }
}



.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(9, 147, 151, 0.1);
    border: 2px solid rgba(61, 182, 170, 0.2);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #099397, #f1ec3d, #78c39d);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #099397;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    font-weight: bold;
}

.form-input {
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #099397;
    box-shadow: 0 0 0 4px rgba(9, 147, 151, 0.15);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.submit-button {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(9, 147, 151, 0.3);
}

.submit-button:hover {
    background: linear-gradient(135deg, #078084, #359a8f);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(9, 147, 151, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.database-button {
    background: linear-gradient(135deg, #78c39d, #afd962);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(120, 195, 157, 0.3);
}

.database-button:hover {
    background: linear-gradient(135deg, #6bb88a, #9bc955);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(120, 195, 157, 0.4);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #099397, #78c39d);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.validation-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: #ef4444;
    display: none;
}

.validation-message.show {
    display: block;
}



@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .tab-button {
        padding: 1.5rem 1rem;
        font-size: 1.75rem;
    }

    .form-container {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}

.contenedor_formularios {
    max-width: 600px;
    margin: 40px auto;
    font-family: 'poppins', sans-serif;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tab.active {
    background-color: #099397;
    color: white;
}

.formulario_llenado {
    display: none;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formulario_llenado.visible {
    display: block;
}

.formulario_llenado h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.formulario_llenado label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #555;
}

.formulario_llenado input,
.formulario_llenado select,
.formulario_llenado textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.formulario_llenado button {
    width: 100%;
    padding: 12px;
    background-color: #78c39d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.formulario_llenado button:hover {
    background-color: #099397;
}


#bloqueFormularios.oculto {
    display: none;
}

#bloqueFormularios {
    width: 100%;
    max-width: none;
    margin: 20px 0;
}

.oculto {
    display: none;
}

.tab-active {
    border-bottom: 3px solid #06b6d4;
}

#bloqueDirectorio.oculto {
    display: none;
}

#bloqueDirectorio {
    width: 100%;
    max-width: none;
    margin: 20px 0;
}


#toggleFormularios {
    display: block;
    width: 100%;
    margin: 20px auto;
    padding: 16px 24px;
    background-color: #099397;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#toggleFormularios:hover {
    background-color: #077a7a;
}

@media (max-width: 600px) {
    #toggleFormularios {
        font-size: 16px;
        padding: 14px 20px;
    }
}

#toggleFormularios.hidden {
    display: none !important;
}
#toggleDirectorio {
    display: block;
    width: 100%;
    margin: 20px auto;
    padding: 16px 24px;
    background-color: #099397;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#toggleDirectorio:hover {
    background-color: #077a7a;
}

@media (max-width: 600px) {
    #toggleDirectorio {
        font-size: 16px;
        padding: 14px 20px;
    }
}


#bloqueTablas:hover {
    background-color: #077a7a;
}

@media (max-width: 600px) {
    #bloqueTablas {
        font-size: 16px;
        padding: 14px 20px;
    }
}

#bloqueFormularios .tab-button {
    font-size: 18px;
    padding: 16px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}
#bloqueDirectorio .tab-button {
    font-size: 18px;
    padding: 16px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 600px) {
    #bloqueFormularios .tab-button {
        font-size: 14px;
        padding: 12px 16px;
    }
    #bloqueDirectorio .tab-button {
        font-size: 14px;
        padding: 12px 16px;
    }
}



.card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    margin-bottom: 25px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add,
.btn-remove {
    padding: 4px 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    border: none;
}

.btn-add {
    background: #099397;
    color: white;
}

.btn-remove {
    background: #099397;
    color: white;
}

/* Animación simple */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.tab-active {
    border-bottom: 3px solid #099397;
    color: #099397;
    background: linear-gradient(to bottom, rgba(9, 147, 151, 0.05), transparent);
    font-weight: bold;
}

.contact-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(9, 147, 151, 0.15);
    border-left-color: #3db6aa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background-color: #afd962;
    color: #065f46;
}

.status-pending {
    background-color: #f1ec3d;
    color: #854d0e;
}

.status-web {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: white;
}

.status-vcard {
    background: linear-gradient(135deg, #afd962, #78c39d);
    color: #065f46;
}

.loading-spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #099397;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: linear-gradient(135deg, #3db6aa, #099397);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.gradient-bg {
    background: linear-gradient(135deg, #099397 0%, #3db6aa 50%, #78c39d 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #099397, #3db6aa);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #077679, #31a094);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 147, 151, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #afd962, #78c39d);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #9bc554, #69b48d);
    transform: translateY(-2px);
}

.search-box {
    border: 2px solid #3db6aa;
    transition: all 0.3s ease;
}

.search-box:focus {
    border-color: #099397;
    box-shadow: 0 0 0 3px rgba(9, 147, 151, 0.1);
}

/* Chips base */
.filter-chip {
    background: white;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    color: #099397;
    /* texto por defecto */
}

/* Chips activos */
.filter-chip.active {
    background: #099397;
    border-color: #099397;
    color: white;
}



.template-card {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: #3db6aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 147, 151, 0.15);
}

@view-transition {
    navigation: auto;
}
 /* ---------- BASE ---------- */
.importance-container {
    font-family: 'Poppins', sans-serif;
    max-width: 360px;
}
.importance-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #099397;
}
/* ---------- FILA ---------- */
.importance-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
/* ---------- BOTONES ---------- */
.button-group {
    display: flex;
    background: #eaf7f6;
    padding: 4px;
    border-radius: 10px;
}

.button-group button {
    border: none;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #099397;
    transition: all 0.3s ease;
}
.button-group button:hover {
    background: rgba(9, 147, 151, 0.15);
}
/* Botón activo */
.button-group button.active {
    background: #099397;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}
/* ---------- INDICADOR ---------- */
.indicator {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #3db6aa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    transition: background-color 0.4s, transform 0.2s;
}
                
 .indicator:hover {
   transform: scale(1.07);
    }

 .teams-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 6px 14px rgba(9,147,151,0.35);
    transition: all 0.3s ease;
}

.teams-btn:hover{
    background: linear-gradient(135deg, #099397, #78c39d);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(9,147,151,0.45);
}

.teams-btn:active{
    transform: scale(0.97);
}

.footer {
    background: #ffffff00;
    /* fondo blanco */
    color: #e1e653;
    border-top: 1px solid rgba(225, 230, 83, .3);
    padding: 20px 40px;
}

footer .rights {
    color: #78c39d;
}
.footer .brand {
    color: #f1ec3d;
}

body.dark-mode {
    background-color: #0f1115;
    color: #2a2a2a;
}


.dark-toggle {
    background: linear-gradient(135deg, #099397, #3db6aa);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}

.dark-toggle:hover {
    background: linear-gradient(135deg, #3db6aa, #f1ec3d);
    transform: translateY(-2px) scale(1.03);
}

body.dark-mode .footer {
    background: #0f111500;
    color: #e1e653;
    border-top: 1px solid rgba(225, 230, 83, .3);
    padding: 20px 40px;
}

body.dark-mode .footer .rights {
    color: #78c39d;
}

body.dark-mode .footer .brand {
    color: #f1ec3d;
}

body.dark-mode .form-container {
    background: #161a20;
    border-radius: 18px;
    border: 1px solid rgba(61, 182, 170, .35);

    box-shadow: 0 20px 40px rgba(0, 0, 0, .7);
}

body.dark-mode .form-container::before {
    background: linear-gradient(90deg, #3db6aa, #f1ec3d, #78c39d);
}


body.dark-mode .form-label {
    color: #878787;
}


body.dark-mode .form-input {
    background: #1c2128;
    color: #ffffff;
    border: 1px solid #2a323c;
    border-radius: 10px;
    transition: .3s;
}

body.dark-mode .form-input::placeholder {
    color: #7a7a7a;
}

body.dark-mode .form-input:focus {
    border-color: #e1e653;
    box-shadow: 0 0 0 3px rgba(61, 182, 170, .35);
    background: #222831;
}


body.dark-mode .form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .35);
}


body.dark-mode .filter-section {
    background: #161a20;
    border: 1px solid rgba(61, 182, 170, .35);
    border-radius: 16px;
    color: #e6e6e6;
}


body.dark-mode .filter-chip {
    background: #1c2128 !important;
    border: 1px solid #2a323c !important;
    color: #e6e6e6 !important;
}

body.dark-mode .filter-chip:hover {
    background: #099397 !important;
    border-color: #099397 !important;
    color: #fff !important;
}

body.dark-mode .filter-chip.active {
    background: linear-gradient(135deg, #099397, #3db6aa) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}
body.dark-mode {
    background-color: #0f1115;
    color: #e6e6e6;
    /* texto claro por defecto */
}

body.dark-mode h3  {
    color: #e6e6e6;
}

body.dark-mode ul {
    color: #099397;
    /* texto azul */
    list-style: none;
    /* quitamos bullets por defecto */
    padding-left: 0;
    /* eliminamos sangría */
    margin: 1rem 0;
    /* espacio vertical */
}

body.dark-mode h2,
body.dark-mode label {
    color: #f1ec3d;
}


body.dark-mode a {
    color: #3db6aa;
}

body.dark-mode a:hover {
    color: #f1ec3d;
}
/* Estilo general del modal en dark mode */
body.dark-mode .modal-content {
    background: #161a20;
    /* fondo oscuro */
    color: #e6e6e6;
    /* texto claro */
    border-radius: 12px;
    border: 1px solid rgba(61, 182, 170, .35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .7);
}

/* Labels dentro del modal */
body.dark-mode .modal-content label {
    color: #f1ec3d;
    /* amarillo claro */
}

/* Inputs y selects */
body.dark-mode .modal-content input,
body.dark-mode .modal-content select,
body.dark-mode .modal-content textarea {
    background: #1c2128;
    color: #ffffff;
    border: 1px solid #2a323c;
    border-radius: 10px;
    transition: .3s;
}

/* Placeholder */
body.dark-mode .modal-content input::placeholder,
body.dark-mode .modal-content textarea::placeholder {
    color: #7a7a7a;
}

/* Focus */
body.dark-mode .modal-content input:focus,
body.dark-mode .modal-content select:focus,
body.dark-mode .modal-content textarea:focus {
    border-color: #e1e653;
    box-shadow: 0 0 0 3px rgba(61, 182, 170, .35);
    background: #222831;
}

/* Opciones dentro del select */
body.dark-mode .modal-content select option {
    background: #1c2128;
    color: #e6e6e6;
}

.logo {
    content: url("logo.png");
}

body.dark-mode .logo {
    content: url("Logo_Blanco.png");
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    background-color: #fff;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.form-input:hover {
    border-color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:valid {
    border-color: #22c55e;
}

.form-input:invalid {
    border-color: #ef4444;
}

.autocomplete {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    margin-top: -5; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    color: #010b0a;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
}

.autocomplete-item:hover {
    background: #f3f4f6;
}

.autocomplete-empty {
    padding: 10px 14px;
    color: #6b7280;
    font-size: 13px;
}

#cityInfoBox {
    display: none;
    position: fixed;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 600px;
}

.city-info-box button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -10px;
    left: 35px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 4px 7px;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* El Panel "Pegado" */
.panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 5;
    width: 340px;
    max-height: 420px;

    background: #ffffff;
    border-radius: 16px;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.06);

    border: 1px solid rgba(225, 230, 83, 0.505);

    z-index: 9999;
    overflow: hidden;

    backdrop-filter: blur(6px);

    animation: slideDown 0.25s ease-out;
}

/* Flechita decorativa que apunta al botón */
.panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animación de entrada */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    transition: background 0.3s;
}

.panel li .notif-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.panel li.cierre {
    background: #fff8f2;
    border-left: 4px solid #e67e22;
}

.panel li.prospecto {
    background: #fffdf2;
    border-left: 4px solid #f1c40f;
}

.panel li.cita {
    background: #f2f9ff;
    border-left: 4px solid #3498db;
}

.panel li:hover {
    background: #f8faff;
}
.modal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', sans-serif;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.status-badge {
    background: #eef2ff;
    color: #3730a3;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.modal-body label {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body p {
    margin: 5px 0 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.row>div {
    flex: 1;
    min-width: 200px;
}

.financials {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.box {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
}

.revenue {
    background: #ecfdf5;
}

.gp {
    background: #eff6ff;
}

.box p {
    font-size: 18px;
    font-weight: 600;
}

.description {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
}
.section {
    margin-bottom: 30px;
}

.section h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

#pipelineDetailsContent {
    overflow-y: auto;
    padding: 30px;
}

#pipelineDetailsContent::-webkit-scrollbar {
    width: 8px;
}

#pipelineDetailsContent::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
#prospectosDetailsContent {
    overflow-y: auto;
    padding: 30px;
}

#prospectosDetailsContent::-webkit-scrollbar {
    width: 8px;
}

#prospectosDetailsContent::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        transform: scale(0.97);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
.section {
    margin-bottom: 25px;
}

.section h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

p {
    margin: 4px 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.description {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
}
.hidden {
    display: none;
}
