/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    padding-bottom: 80px; /* Espacio para el footer */
}

/* --- HEADER --- */
.header-cliente {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.logo-img {
    max-height: 80px; /* Controla el tamaño del logo */
    margin-bottom: 10px;
}

.header-cliente h1 {
    font-size: 1.5rem;
    color: #2c3e50;
}

/* --- GRILLA PRINCIPAL --- */
.dashboard-grid {
    display: grid;
    /* Esto crea columnas automáticas según el tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TARJETAS (CARDS) --- */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden; /* Para que la cabecera no se salga de las curvas */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px); /* Efecto de elevación al pasar el mouse */
}

.card-header {
    padding: 15px;
    color: white;
}

.card-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

/* Colores para identificar cada sección visualmente */
.color-1 { background-color: #3498db; } /* Azul - Cotizaciones */
.color-2 { background-color: #27ae60; } /* Verde - Realizados */
.color-3 { background-color: #f39c12; } /* Naranja - En proceso */
.color-4 { background-color: #8e44ad; } /* Morado - Cronograma */
.color-5 { background-color: #7f8c8d; } /* Gris - Facturas */
.color-6 { background-color: #230a4b; } /* morado obscuro - suspendidos */

.card-body {
    padding: 20px;
}

/* --- LISTAS DE LINKS --- */
.lista-links {
    list-style: none;
}

.lista-links li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.lista-links li:last-child {
    border-bottom: none;
}

.lista-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    display: block;
    transition: color 0.2s;
}

.lista-links a:hover {
    color: #3498db;
}

.lista-links small {
    display: block;
    color: #777;
    margin-top: 4px;
    font-weight: normal;
}

/* Botón genérico dentro de las tarjetas */
.btn-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    background-color: #e8f0fe;
    color: #1967d2;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* --- FOOTER Y WHATSAPP --- */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px; /* Esto crea la forma de "pastilla" */
    font-weight: bold;
    font-size: 1rem;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}