/* assets/mc_style.css */


body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Wrapper General */
.mc_refer-wrapper {
    padding: 40px 20px;
    background-color: #f5f7fa;
}

/* Título Principal */
.mc_refer-title {
    text-align: center;
    font-size: 2em;
    color: #043c84;
    margin-bottom: 10px;
}

/* Descripción */
.mc_refer-description {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor de Tarjetas */
.mc_refer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas de Ciudad */
.mc_refer-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
    position: relative;
    width: 100%;
}

.mc_refer-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Encabezado de la Tarjeta */
.mc_refer-header {
    background-color: #e9f0f7;
    color: #333;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc_refer-header h2 {
    font-size: 1.6em;
    margin: 0;
    display: flex;
    align-items: center;
    color: #043c84;
}

.mc_refer-header h2 i {
    margin-right: 10px;
    color: #043c84;
}

/* Botón de Toggle */
.mc_refer-toggle {
    background: none;
    border: none;
    background-color: #043c84; /* Cambia el color de fondo */
    color: #ffffff; /* Cambia el color del texto */
    font-size: 1em;
    cursor: pointer;
    padding: 8px 12px;   
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.mc_refer-toggle:hover {
    background-color: #032a5e;
}

.mc_refer-toggle i {
    margin-right: 5px;
    transition: transform 0.3s;
}

.mc_refer-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Contenido de la Tarjeta */
.mc_refer-content {
    padding: 20px 25px;
    background-color: #fafafa;
    animation: fadeIn 0.5s ease-in-out;
    border-top: 1px solid #e0e0e0;
}

/* Referente Principal */
.mc_refer-referente {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: #dff0d8;
    padding: 10px;
    border-radius: 8px;
}

.mc_refer-referente i {
    margin-right: 10px;
    color: #28a745;
    font-size: 1.2em;
}

.referente-info {
    display: flex;
    flex-direction: column;
}

.referente-name {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1em;
}

.referente-count {
    color: #555;
    font-size: 0.95em;
}

/* Descripción del Referente */
.referente-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

/* Lista de Seguidores */
.mc_refer-seguidor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.mc_refer-seguidor {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 0;
}

/* Línea vertical craquelada entre seguidor-tiempo y el icono */
.mc_refer-seguidor .vertical-line {
    width: 2px;
    height: 50px; /* Ajusta la altura según sea necesario */
    background: none;
    border-left: 2px dashed #007BFF; /* Línea craquelada */
    margin: 0 10px;
}

/* Tiempo Promedio */
.seguidor-tiempo {
    font-size: 0.85em;
    color: #888;
    margin-right: 10px;
    width: 50px;
    text-align: right;
    flex-shrink: 0;
}

/* Icono de seguidor */
.mc_refer-seguidor i {
    margin-right: 10px;
    color: #17a2b8;
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Información del seguidor */
.seguidor-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.seguidor-name {
    flex: 1;
    font-weight: 600;
    color: #17a2b8;
    font-size: 1em;
}

.seguidor-count {
    color: #555;
    font-size: 0.9em;
}

.seguidor-fecha {
    font-size: 0.9em;
    color: #555;
}

/* Mensaje sin datos */
.mc_refer-no-data {
    text-align: center;
    color: #dc3545;
    font-size: 1.2em;
}

.mc_refer-no-data i {
    margin-right: 10px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividad */
/* Responsividad para dispositivos móviles sin apilamiento */
@media (max-width: 768px) {
    .mc_refer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mc_refer-toggle {
        margin-top: 10px;
    }

    /* Mantener la estructura horizontal en la tarjeta de referente y seguidor */
    .mc_refer-referente,
    .mc_refer-seguidor {
        flex-direction: row; /* Mantener la estructura horizontal */
        align-items: center;
    }

    .referente-info,
    .seguidor-info {
        align-items: flex-start;
    }

    .referente-count,
    .seguidor-count {
        margin-top: 0; /* Eliminar margen superior para mantener la alineación horizontal */
    }

    .seguidor-tiempo {
        width: 40px;
        font-size: 0.8em;
        margin-right: 10px;
    }

    .mc_refer-seguidor .vertical-line {
        margin: 0 8px;
    }
  
   .mc_refer-toggle {
        margin-top: 10px;
        margin-left: auto; /* Esto lo alinea a la derecha */
    }
}

@media (max-width: 480px) {
    .mc_refer-header h2 {
        font-size: 1.3em;
    }

    .mc_refer-toggle {
        font-size: 0.9em;
    }

    .referente-name {
        font-size: 1em;
    }

    .referente-count,
    .seguidor-count {
        font-size: 0.85em;
        margin-top: 0; /* Eliminar margen superior */
    }

    .seguidor-tiempo {
        width: 35px;
        font-size: 0.75em;
        margin-right: 8px;
    }

    .mc_refer-seguidor .vertical-line {
        margin: 0 6px;
    }

    /* Mantener la estructura horizontal en pantallas más pequeñas también */
    .mc_refer-referente,
    .mc_refer-seguidor {
        flex-direction: row; /* Asegurar estructura horizontal */
        align-items: center;
    }
  .mc_refer-toggle {
        font-size: 0.9em;
        margin-top: 10px;
        margin-left: auto; /* Esto lo alinea a la derecha */
    }
}





/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    color: #242424;
}

/* Estilos para el acordeón de ciudad */
.mc_refer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #f1f1f1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.mc_refer-header h2 {
    margin: 0;
    font-size: 20px;
    color: #043c84; /* Color principal */
}

.mc_refer-header i {
    margin-right: 10px;
    color: #043c84;
}

.mc_refer-toggle {
    background: none;
    border: none;
    color: #043c84;
    font-size: 18px;
    cursor: pointer;
}

.mc_refer-content {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    margin-bottom: 20px;
}

/* Estilos para el acordeón de casa de cambio */
.mc_casa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #e9e9e9;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

.mc_casa-header h3 {
    margin: 0;
    font-size: 18px;
    color: #242424;
}

.mc_casa-header i {
    margin-right: 10px;
    color: #242424;
}

.mc_casa-toggle {
    background: none;
    border: none;
    color: #242424;
    font-size: 16px;
    cursor: pointer;
}

.mc_casa-content {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #f9f9f9;
}

/* Estilos para la línea de tiempo */
.timeline {
    position: relative;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px;
    width: 2px;
    background: #ccc;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 16px;
    background: #fff;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
}

.timeline-content {
    background: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.timeline-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
    color: #242424;
}

.timeline-content p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.timeline-content strong {
    color: #242424;
}


/* Estilos adicionales */
.mc_refer-referente {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    background-color: #e9f7ef; /* Fondo verde minimalista */
    padding: 10px;
    border-radius: 5px;
}

.mc_refer-referente i {
    font-size: 24px;
    margin-right: 10px;
    color: #28a745; /* Color verde moderno para el ícono del referente */
}

.referente-info .referente-name {
    font-size: 22px;
    font-weight: bold;
    color: #28a745; /* Color verde moderno para el nombre del referente */
}



/* Estilos para botones y enlaces */
button, .mc_refer-toggle, .mc_casa-toggle {
    outline: none;
}

.mc_refer-toggle:hover, .mc_casa-toggle:hover {
    color: #e74c3c;
}

a {
    color: #043c84;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilos para mensajes */
.mc_refer-no-data {
    text-align: center;
    font-size: 18px;
    color: #e74c3c;
}

.mc_refer-no-data i {
    margin-right: 5px;
}

/* Estilos para la tabla de resultados SQL */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wp-list-table th, .wp-list-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.wp-list-table th {
    background-color: #f1f1f1;
    color: #242424;
    font-weight: bold;
}

.wp-list-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.wp-list-table tr:hover {
    background-color: #f5f5f5;
}

.wp-list-table td {
    color: #242424;
}

/* Estilos responsivos */
@media (max-width: 600px) {
    .mc_refer-header h2,
    .mc_casa-header h3 {
        font-size: 16px;
    }

    .timeline-content h4 {
        font-size: 14px;
    }

    .timeline-content p {
        font-size: 12px;
    }
}




