/* Estilos personalizados para el panel de cliente */
.cliente-panel-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cliente-panel-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #f8f8f8;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;
}

.cliente-panel-tab {
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1 1 auto;
}

.cliente-panel-tab.active {
    color: #fff;
    border-bottom: 3px solid #ECAD20;
    background-color: #0E3950;
}

.cliente-panel-tab:hover {
    color: #ECAD20;
}

.cliente-panel-content {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

.cliente-panel-section {
    display: none;
}

.cliente-panel-section.active {
    display: block;
}

/* Estilos para el grid y las tarjetas */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    margin: 0 auto;
}

.grid > div {
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: left; /* Alineación del texto a la izquierda */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Para el diseño de dos columnas */
    align-items: center; /* Centrar verticalmente */
    gap: 1rem; /* Espacio entre el icono y el contenido */
}

.grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.15);
}

.grid > div a {
    text-decoration: none; /* Quitar subrayado de los enlaces */
    color: inherit; /* Heredar el color del texto */
    display: flex; /* Para el diseño de dos columnas */
    align-items: center; /* Centrar verticalmente */
    gap: 1rem; /* Espacio entre el icono y el contenido */
    width: 100%; /* Ocupar todo el ancho */
}

.grid > div .icon {
    font-size: 2rem; /* Tamaño del icono */
    color: #2563eb; /* Color del icono */
}

.grid > div h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #0E3950;
}

.grid > div p {
    font-size: 1rem;
    margin: 0.25rem 0;
    color: #4b5563;
}

.grid > div span {
    font-weight: 600;
}

.text-blue-600 {
    color: #0E3950;
}

.text-gray-700 {
    color: #374151;
}

/* Mejoras al contenedor de columnas */
.contenedor {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    padding: 10px;
}

.columna {
    display: flex;
    flex-direction: column;
    border: none;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.columna:hover {
    background-color: #f1f3f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.columna strong {
    font-weight: 700;
    color: #0E3950;
    margin-bottom: 5px;
}

/* Mejoras a los botones */
input[type="submit"] {
    background: linear-gradient(145deg, #0E3950, #0a2a3d);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="submit"]:hover {
    background: linear-gradient(145deg, #0a2a3d, #0E3950);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.proyecto-campos .cambiar-estado-form {
    text-align: right;
    padding: 15px 10px 5px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .contenedor {
        grid-template-columns: 1fr;
    }
    
    .estado-circulos .circulo {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
    
    .proyecto-estado {
        font-size: 16px;
        padding: 10px 16px;
    }
}

@media (max-width: 650px) {
    .cliente-panel-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .cliente-panel-tab {
        text-align: center;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .cliente-panel-tab.active {
        border-left: 3px solid #ECAD20;
        border-bottom: none;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para la visualización de proyectos */

/* Acceso denegado */
.acceso-denegado {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    background-color: #fff3f3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.acceso-denegado-icono {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.acceso-denegado h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Dashboard de estadísticas */
.proyecto-dashboard {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background: #f1f3f5;
}

.stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0E3950;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Estilos específicos para las tarjetas de estadísticas */
.stat-card.total .stat-icon {
    background-color: rgba(14, 57, 80, 0.1);
}

.stat-card.total .stat-icon .dashicons {
    color: #0E3950;
}

.stat-card.activos .stat-icon {
    background-color: rgba(46, 204, 113, 0.1);
}

.stat-card.activos .stat-icon .dashicons {
    color: #2ecc71;
}

.stat-card.pendientes .stat-icon {
    background-color: rgba(243, 156, 18, 0.1);
}

.stat-card.pendientes .stat-icon .dashicons {
    color: #f39c12;
}

.stat-card.finalizados .stat-icon {
    background-color: rgba(52, 152, 219, 0.1);
}

.stat-card.finalizados .stat-icon .dashicons {
    color: #3498db;
}

/* Filtros de proyectos */
.proyecto-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filtro-busqueda {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.filtro-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #4a5568;
    transition: all 0.3s ease;
}

.filtro-input:focus {
    outline: none;
    border-color: #ECAD20;
    box-shadow: 0 0 0 2px rgba(236, 173, 32, 0.1);
}

.filtro-icono {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.filtro-estado, .filtro-orden {
    min-width: 200px;
}

.filtro-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}

.filtro-select:focus {
    outline: none;
    border-color: #ECAD20;
    box-shadow: 0 0 0 2px rgba(236, 173, 32, 0.1);
}

/* Grid de proyectos */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Clases base para tarjetas */
.card-base {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-header-base {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Tarjeta de proyecto */
.proyecto-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #0E3950;
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.proyecto-card.finalizado {
    border-top-color: #2ecc71;
}

.proyecto-card.activo {
    border-top-color: #3498db;
}

.proyecto-card.pendiente {
    border-top-color: #f39c12;
}

.proyecto-encabezado {
    padding: 20px;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proyecto-titulo {
    font-size: 18px;
    font-weight: 600;
    color: #0E3950;
    margin: 0;
    line-height: 1.3;
}

.proyecto-estado-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #f1f3f5;
    color: #4a5568;
}

.proyecto-card.finalizado .proyecto-estado-badge {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.proyecto-card.activo .proyecto-estado-badge {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.proyecto-card.pendiente .proyecto-estado-badge {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.proyecto-info {
    padding: 20px;
    flex: 1;
}

.proyecto-fechas {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.fecha-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fecha-label {
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fecha-label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.fecha-valor {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.proyecto-progreso {
    margin-bottom: 20px;
}

.progreso-label {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 5px;
}

/* Clases base para barras de progreso */
.barra-progreso-base {
    height: 8px;
    background-color: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
}

.progreso-barra-bg {
    height: 8px;
    background-color: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
}

.progreso-barra {
    height: 100%;
    background: linear-gradient(90deg, #0E3950, #ECAD20);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.estado-circulos-mini {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.circulo-mini {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #f1f3f5;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.circulo-mini.completado {
    background-color: #ECAD20;
}

.circulo-mini:hover {
    transform: scale(1.3);
}

.proyecto-actividad {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.actividad-titulo {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.actividad-contenido {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}

.proyecto-acciones {
    padding: 15px 20px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: flex-end;
}

/* Botones de acción - Estilo base mejorado */
.btn-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    text-align: center;
    line-height: 1.4;
}

/* Asegurar que todos los iconos de dashicons estén correctamente alineados */
.btn-accion .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

/* Botón de comentario (Enviar actualización) */
.btn-accion.comentario {
    background-color: #0E3950 !important;
    color: white;
    width: 100%;
    margin-top: 10px;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 7px !important;
}

.btn-accion.comentario:hover {
    background-color: #ECAD20 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}


/* Botón de avanzar estado */
.btn-accion.avanzar {
    background-color: #0E3950 !important;
    color: white;
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 7px !important;
}

.btn-accion.avanzar:hover {
    background-color: #ECAD20 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Botón secundario */
.btn-accion.secundario {
    background-color: #f1f3f5;
    color: #4a5568;
    margin-top: 10px;
    margin-right: 10px;
}

.btn-accion.secundario:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-accion .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.proyecto-boton {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #0E3950;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.proyecto-boton:hover {
    background-color: #08293b;
    transform: translateY(-2px);
}

.proyecto-boton .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Estado vacío */
.proyecto-vacio {
    padding: 50px 20px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.vacio-icono {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f8f9fa;
    margin-bottom: 20px;
}

.vacio-icono .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #a0aec0;
}

.proyecto-vacio h3 {
    font-size: 22px;
    color: #4a5568;
    margin-bottom: 10px;
}

.proyecto-vacio p {
    font-size: 16px;
    color: #718096;
    max-width: 400px;
    margin: 0 auto;
}

/* Paginación */
.paginacion-proyectos {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.paginacion-proyectos .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 5px;
    padding: 0 10px;
    border-radius: 8px;
    background-color: white;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.paginacion-proyectos .page-numbers:hover {
    background-color: #f1f3f5;
    transform: translateY(-2px);
}

.paginacion-proyectos .page-numbers.current {
    background-color: #0E3950;
    color: white;
}

.paginacion-proyectos .prev,
.paginacion-proyectos .next {
    padding: 0 15px;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .proyectos-grid {
        grid-template-columns: 1fr;
    }
    
    .proyecto-filtros {
        flex-direction: column;
    }
    
    .filtro-busqueda, .filtro-estado, .filtro-orden {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .proyecto-fechas {
        flex-direction: column;
    }
}

/* Estilos para la página de detalle de proyecto */
.proyecto-detalle-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Cabecera del proyecto */
.proyecto-detalle-cabecera {
    background: linear-gradient(135deg, #0E3950 0%, #08293b 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

.proyecto-detalle-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.proyecto-detalle-titulo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    max-width: 70%;
    line-height: 1.3;
    color: white;
}

.proyecto-detalle-estado {
    background: #ECAD20;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Métricas */
.proyecto-detalle-metricas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metrica-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.metrica-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.metrica-icono {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 15px;
}

.metrica-icono .dashicons {
    font-size: 25px;
    width: 25px;
    height: 25px;
    color: #ECAD20;
}

.metrica-info {
    display: flex;
    flex-direction: column;
}

.metrica-valor {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.metrica-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Progreso del proyecto */
.proyecto-detalle-progreso {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.progreso-etapas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.etapa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    width: 14.28%; /* 100% / 7 etapas */
    position: relative;
    transition: all 0.3s ease;
}

.etapa-nodo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    background: #f1f3f5;
    transition: all 0.3s ease;
}

.etapa-icono {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
}

.etapa-icono .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #a0aec0;
}

.etapa-info {
    text-align: center;
    max-width: 100px;
}

.etapa-nombre {
    font-size: 12px;
    color: #718096;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
}

.etapa-conector {
    flex: 1;
    height: 4px;
    background: #f1f3f5;
    z-index: 1;
    position: absolute;
    left: calc(7.14% + 25px); /* 50% de la primera etapa + medio botón */
    right: calc(7.14% + 25px); /* 50% de la última etapa + medio botón */
    top: 45px;
}

/* Estados de las etapas */
.etapa-item.completado .etapa-nodo {
    background: #2ecc71;
    box-shadow: 0 0 0 5px rgba(46, 204, 113, 0.2);
}

.etapa-item.completado .etapa-icono .dashicons {
    color: #2ecc71;
}

.etapa-item.completado .etapa-nombre {
    color: #2ecc71;
    font-weight: 600;
}

.etapa-item.actual .etapa-nodo {
    background: #ECAD20;
    box-shadow: 0 0 0 5px rgba(236, 173, 32, 0.2);
    transform: scale(1.1);
}

.etapa-item.actual .etapa-icono .dashicons {
    color: #ECAD20;
}

.etapa-item.actual .etapa-nombre {
    color: #ECAD20;
    font-weight: 600;
}

.etapa-conector.completado {
    background: #2ecc71;
}

/* Barra de progreso */
.progreso-barra-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.progreso-barra-container .progreso-barra-bg {
    flex: 1;
    height: 8px;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.progreso-barra-fill {
    height: 100%;
    background: linear-gradient(90deg, #0E3950, #ECAD20);
    border-radius: 4px;
    transition: width 1s ease;
}

.progreso-porcentaje {
    font-size: 16px;
    font-weight: 600;
    color: #0E3950;
    min-width: 50px;
    text-align: right;
}

/* Tarjetas de información */
.proyecto-detalle-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detalle-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.detalle-card-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.detalle-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0E3950;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalle-card-header h3 .dashicons {
    color: #ECAD20;
}

.detalle-card-content {
    padding: 20px;
    flex: 1;
}

/* Grid de información */
.detalle-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.detalle-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detalle-label {
    font-size: 14px;
    color: #718096;
}

.detalle-valor {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

.detalle-valor.estado-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    background: rgba(236, 173, 32, 0.1);
    color: #ECAD20;
    font-size: 14px;
}

/* Descripción */
.detalle-descripcion {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.detalle-descripcion h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #4a5568;
}

.descripcion-contenido {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
}

/* Timeline de actividades */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f8f9fa;
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-punto {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e0;
    z-index: 1;
}

.timeline-item.reciente .timeline-punto {
    background: #ECAD20;
    border-color: #ECAD20;
    box-shadow: 0 0 0 5px rgba(236, 173, 32, 0.2);
}

.timeline-contenido {
    position: relative;
}

.timeline-texto {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 8px;
}

.timeline-fecha {
    font-size: 13px;
    color: #a0aec0;
}

.timeline-item.reciente .timeline-texto {
    font-weight: 600;
    color: #2d3748;
}

.no-actividad {
    text-align: center;
    padding: 30px 20px;
    color: #a0aec0;
}

.no-actividad .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.no-actividad p {
    font-size: 16px;
    margin: 0;
}

/* Acciones del proyecto */
.proyecto-detalle-acciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.accion-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.accion-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.accion-header h3 {
    margin: 0;
    font-size: 18px;
    color: #0E3950;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accion-header h3 .dashicons {
    color: #ECAD20;
}

.accion-content {
    padding: 20px;
    flex: 1;
}

/* Formulario comentarios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #4a5568;
}

.comentario-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #4a5568;
    resize: vertical;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comentario-form textarea:focus {
    outline: none;
    border-color: #ECAD20;
    box-shadow: 0 0 0 2px rgba(236, 173, 32, 0.1);
}

.acciones-adicionales {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
}

.proyecto-completado {
    text-align: center;
    padding: 30px 20px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.proyecto-completado .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    color: #2ecc71;
}

.proyecto-completado p {
    font-size: 18px;
    color: #2d3748;
    margin: 0;
}

.proyecto-completado strong {
    color: #2ecc71;
}

/* Responsive */
@media (max-width: 992px) {
    .proyecto-detalle-info,
    .proyecto-detalle-acciones {
        grid-template-columns: 1fr;
    }
    
    .timeline-card {
        order: -1; /* Mostrar la timeline antes en móvil */
    }
}

@media (max-width: 768px) {
    .proyecto-detalle-titulo {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .proyecto-detalle-titulo h1 {
        max-width: 100%;
    }
    
    .etapa-nombre {
        font-size: 10px;
    }
    
    .progreso-etapas {
        overflow-x: auto;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .etapa-item {
        min-width: 80px;
    }
    
    .detalle-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el panel de control del cliente */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Sección de bienvenida */
.dashboard-welcome {
    background: linear-gradient(135deg, #0E3950 0%, #08293b 100%);
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 10px 20px rgba(14, 57, 80, 0.15);
}

.welcome-content-left {
    flex: 1;
    text-align: left !important;
}

.welcome-content {
    flex: 1;
}

.welcome-content h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
}

.welcome-content p {
    font-size: 16px;
    margin-bottom: 0;
    opacity: 0.9;
}

.welcome-image {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-image img {
    max-width: 100%;
    height: auto;
}

/* Grid de estadísticas */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Tarjetas de estadísticas */
.stat-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.stat-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.stat-icon i {
    font-size: 32px;
    color: #0E3950;
    transition: all 0.3s ease;
}

/* Diferentes colores para iconos */
.stat-icon.support {
    background-color: rgba(46, 204, 113, 0.1);
}
.stat-icon.support i {
    color: #2ecc71;
}

.stat-icon.proposal {
    background-color: rgba(52, 152, 219, 0.1);
}
.stat-icon.proposal i {
    color: #3498db;
}

.stat-icon.payment {
    background-color: rgba(155, 89, 182, 0.1);
}
.stat-icon.payment i {
    color: #9b59b6;
}

.stat-icon.invoice {
    background-color: rgba(230, 126, 34, 0.1);
}
.stat-icon.invoice i {
    color: #e67e22;
}

.stat-icon.service {
    background-color: rgba(52, 73, 94, 0.1);
}
.stat-icon.service i {
    color: #34495e;
}

.stat-icon.project {
    background-color: rgba(236, 173, 32, 0.1);
}
.stat-icon.project i {
    color: #ECAD20;
}

.stat-icon.commercial {
    background-color: rgba(139, 92, 246, 0.1);
}
.stat-icon.commercial i {
    color: #8B5CF6;
}

.stat-description {
    color: #718096;
    font-size: 11px;
    line-height: 1.6;
}
.stat-description p {
    margin: 0;
}

.stat-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.stat-chevron i {
    font-size: 20px;
    color: #a0aec0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-chevron i {
    opacity: 1;
    transform: translateX(0);
}

.stat-details {
    margin-top: auto;
}

.stat-numbers {
    display: flex;
    margin-bottom: 15px;
}

.stat-number {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-number.pending {
    align-items: flex-start;
}

.stat-number.total, .stat-number.active {
    align-items: flex-end;
}

.stat-number .number {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-number.pending .number {
    color: #e74c3c;
}

.stat-number.active .number {
    color: #2ecc71;
}

.stat-number.total .number {
    color: #7f8c8d;
}

.stat-number .label {
    font-size: 10px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-progress {
    width: 100%;
}

.progress-bar {
    height: 6px;
    background-color: #f1f3f5;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0E3950, #ECAD20);
    border-radius: 3px;
    width: 0;
    transition: width 1s ease;
}

/* Acciones rápidas */
.dashboard-quick-actions {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-quick-actions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.quick-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #4a5568;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.quick-action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    color: #0E3950;
}

.quick-action-button i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ECAD20;
}

.quick-action-button span {
    font-size: 14px;
    font-weight: 500;
}

/* Estilos para la sección de alertas */
.dashboard-alerts {
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-alerts h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.dashboard-alerts h3:before {
    content: "\f348";
    font-family: dashicons;
    speak: never;
    font-size: 22px;
    margin-right: 10px;
    color: #ECAD20;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.alert-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
}

.alert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.alert-card.pending-invoices {
    border-top-color: #e74c3c;
}

.alert-card.expiring-services {
    border-top-color: #f39c12;
}

.alert-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #f1f1f1;
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.pending-invoices .alert-icon {
    background-color: rgba(231, 76, 60, 0.1);
}

.pending-invoices .alert-icon i {
    color: #e74c3c;
}

.expiring-services .alert-icon {
    background-color: rgba(243, 156, 18, 0.1);
}

.expiring-services .alert-icon i {
    color: #f39c12;
}

.alert-icon i {
    font-size: 20px;
}

.alert-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.alert-content {
    padding: 15px 20px;
    flex: 1;
}

.alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item-details {
    display: flex;
    flex-direction: column;
}

.alert-item-title {
    font-weight: 600;
    text-align: left;
    color: #2d3748;
    margin-bottom: 3px;
    font-size: 14px;
}

.alert-item-value {
    text-align: left;
    color: #718096;
    font-size: 13px;
}

.pending-invoices .alert-item-value {
    font-weight: 600;
    color: #e74c3c;
}

.expiring-services .alert-item-value {
    font-weight: 600;
    color: #f39c12;
}

.alert-item-action {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    color: #4a5568;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pending-invoices .alert-item-action {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.pending-invoices .alert-item-action:hover {
    background-color: #e74c3c;
    color: white;
}

.expiring-services .alert-item-action {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.expiring-services .alert-item-action:hover {
    background-color: #f39c12;
    color: white;
}

.alert-item-action i {
    margin-right: 5px;
}

.alert-more {
    margin-top: 15px;
    text-align: center;
}

.alert-more a {
    color: #0E3950;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.alert-more a:hover {
    color: #ECAD20;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alerts-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-welcome {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-content {
        margin-bottom: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .stat-link {
        flex-direction: column;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}