/* ===== ESTILOS GENERALES Y FUENTES ===== */
body {
    margin: 0;
    font-family: 'Lato', sans-serif; /* Usamos la fuente de Google Fonts */
    background-color: #f7fafc;      /* Un fondo gris muy claro para todo el cuerpo */
    color: #333;                   /* Color de texto principal */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el footer se quede abajo en páginas con poco contenido */
}

/* ===== 1. ESTILOS DEL ENCABEZADO PRINCIPAL (BANNER VERDE) ===== */
.main-header {
    background-color: #4a9d9e; /* Tono verde azulado corporativo */
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.main-header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* ===== 2. ESTILOS DE LA BARRA DE NAVEGACIÓN ===== */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #e2e8f0; /* Borde inferior sutil */
    padding: 0 5%;
    flex-wrap: wrap; /* Permite que los elementos se reordenen en pantallas pequeñas */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav ul a {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    color: #4a5568; /* Gris oscuro para el texto de los enlaces */
    font-weight: 700;
}

.main-nav ul a:hover {
    background-color: #f8f9fa; /* Efecto hover suave */
}

.user-session {
    margin-left: auto; /* Empuja esta sección a la derecha */
    display: flex;
    align-items: center;
}

.user-session span {
    margin-right: 15px;
    color: #718096; /* Color para el saludo "Hola, ..." */
}

/* ===== 3. ESTILOS DE BOTONES ===== */
.logout-button {
    text-decoration: none;
    color: #4a9d9e;
    border: 1px solid #4a9d9e;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s;
}

.logout-button:hover {
    background-color: #4a9d9e;
    color: white;
}

.cta-button { /* Call-To-Action Button: Botón principal de acción */
    background-color: #38A89D; /* Color turquesa de la imagen */
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none; /* Asegura que no haya subrayado si es un <a> */
    display: inline-block; /* Para que el padding funcione bien */
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2f8e84; /* Un tono más oscuro en hover */
}

/* Botón secundario para acciones como "cancelar" o "volver" */
.button-secondary {
    background-color: #6c757d;
}

.button-secondary:hover {
    background-color: #5a6268;
}


/* ===== 4. CONTENIDO PRINCIPAL Y TARJETAS (CARDS) ===== */
.main-content {
    flex-grow: 1; /* Permite que el contenido principal crezca y empuje el footer hacia abajo */
    padding: 40px 20px;
    max-width: 900px;  /* Aumentado un poco para dar más espacio a las tarjetas */
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto; /* Centra el bloque de contenido */
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Sombra suave como en la imagen */
    border: 1px solid #f0f0f0; /* Borde muy sutil como en la imagen */
    margin-bottom: 40px;
}

.card h2 {
    margin-top: 0;
}


/* ===== 5. SECCIÓN PARA LAS TARJETAS DE TIPOS DE INFORME (Página de Inicio) ===== */
.report-types {
    display: flex;
    justify-content: center; /* Centra las tarjetas si hay espacio extra */
    gap: 30px;               /* Espacio de 30px entre las tarjetas */
    flex-wrap: wrap;         /* Si no caben, se colocarán debajo (para móviles) */
}

.report-card {
    flex-basis: 280px; /* Ancho base de cada tarjeta */
    flex-grow: 1;      /* Permite que crezcan para ocupar el espacio */
    max-width: 350px;  /* Evita que se hagan demasiado anchas */
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px); /* Efecto de "levantar" la tarjeta */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
}

.report-icon { 
    font-size: 3em;
    color: #38A89D; /* Color del icono para que coincida con el botón */
    margin-bottom: 15px;
}

.report-card h3 {
    margin-top: 0;
    color: #2b5a5b; /* Verde oscuro para el título del tipo de informe */
}

.report-card p {
    color: #718096;
    font-size: 0.9em;
    line-height: 1.5;
}

.report-card .cta-button {
    margin-top: 15px; /* Espacio extra arriba del botón */
}


/* ===== 6. ESTILOS PARA EL FOOTER (PIE DE PÁGINA) ===== */
.main-footer {
    background-color: #2b5a5b; /* Un verde corporativo más oscuro */
    color: #e2e8f0; /* Un color de texto gris claro que contrasta bien */
    padding: 40px 20px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para que en móviles se ponga un elemento debajo del otro */
    gap: 20px; /* Espacio entre la info de contacto y los iconos sociales */
}

.contact-info p {
    margin: 10px 0;
    line-height: 1.6;
}

.contact-info i {
    margin-right: 10px;
    color: #4a9d9e; /* Iconos de contacto con el color principal */
    width: 20px; /* Alinea los textos aunque los iconos tengan anchos distintos */
}

.social-icons a {
    color: white;
    font-size: 1.5em;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #4a9d9e; /* Efecto hover con el color corporativo */
}

/* ===== 7. ESTILOS PARA LA PÁGINA "MI PANEL" ===== */
.panel-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    max-width: 800px;
    margin: 20px auto;
}

.panel-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.panel-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.panel-header p {
    color: #718096;
    font-size: 1.1em;
}

.data-section {
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    font-size: 1.4em;
    color: #4a9d9e;
    border-bottom: 2px solid #4a9d9e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.edit-button {
    position: absolute;
    top: 5px;
    right: 0;
    background-color: #f1f5f9;
    color: #4a5568;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.edit-button:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    color: #4a5568;
    font-weight: 700;
}

.data-value {
    color: #2d3748;
    font-weight: 500;
}

.change-link {
    color: #4a9d9e;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    margin-left: 10px;
}

.change-link:hover {
    text-decoration: underline;
}

.data-value-credits {
    font-size: 1.5em;
    font-weight: 700;
    color: #38A89D;
}

/* ===== 8. ESTILOS PARA LA PÁGINA DE COMPRA DE CRÉDITOS ===== */
.purchase-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.purchase-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    width: 220px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.purchase-card h3 {
    margin-top: 0;
    color: #2b5a5b;
    font-size: 1.3em;
}

.purchase-card .price {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin: 10px 0 5px 0;
}

.purchase-card .price-unit {
    font-size: 0.9em;
    font-weight: 400;
    color: #718096;
    margin-top: -5px;
    margin-bottom: 15px;
}

.purchase-card .offer-text {
    font-size: 0.9em;
    color: #c05621;
    font-weight: 500;
    background-color: #feebc8;
    padding: 8px;
    border-radius: 5px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin-bottom: 20px;
}

.purchase-card .offer-text:empty {
    background-color: transparent;
}

.purchase-card.special-offer {
    border: 2px solid #38A89D;
    position: relative;
    overflow: hidden;
}

.purchase-card.special-offer::before {
    content: "OFERTA ESTRELLA";
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: #38A89D;
    color: white;
    padding: 4px 35px;
    transform: rotate(45deg);
    font-size: 0.6em;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.purchase-card .cta-button {
    margin-top: auto;
}
/* Define el estilo del botón secundario por si no lo tenías ya */
.button-secondary {
    background-color: #6c757d;
}

.button-secondary:hover {
    background-color: #5a6268;
}



/* ===== 9. MEDIA QUERIES PARA RESPONSIVE DESIGN ===== */
@media (max-width: 600px) {
    .panel-card {
        padding: 20px;
    }

    .data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .data-value {
        align-self: flex-end;
    }

    .edit-button {
        position: static;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
}