body {
    background-color: #FFFFFF;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

.texto_principal {
    font-size: 50px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    font-weight: bold;
    text-decoration: none;

}

.texto_principal_small {
    font-size: 45px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    text-decoration: none;
}

.smaller {
    font-size: 35px;
    text-decoration: none;
}

.smaller2 {
    font-size: 20px;
    text-decoration: none;
}

.smaller3 {
    font-size: 16px;
    text-decoration: none;
}

.cellgris {
    bordercolor: #00af2a;
    background: #CCCCCC;
}

input,
select {
    font-size: 40px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px;
    border-radius: 10px;
    border-color: #00af2a;
}

input[type=submit] {
    background: #CCCCCC;
    color: white;
    border-style: outset;
    border-color: #00af2a;
    height: 90px;
    width: 300px;
    font: bold 50px arial, sans-serif;
    text-shadow: none;
    border-radius: 10px;
}

input[type=radio]:not(old) {
    color: #33FF66;
    height: 55px;
    width: 55px;
}

input[type=checkbox]:not(old) {
    color: #33FF66;
    height: 55px;
    width: 55px;
}

.text_box {
    font-size: 40px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px;
    border-radius: 10px;
    border-color: #00af2a;
    width: 500px;
    height: 150px;
}

.redtext {
    color: #AE2B04;
}

.bold {
    font-weight: bold;
}

.boton_atras {
    padding: 10px !important;
    /* background-color:#cccccc !important; */
    background-color: rgb(204, 204, 204);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-attachment: scroll;
    background-image: none;
    background-size: auto;
    background-origin: padding-box;
    background-clip: border-box;
}

.table-boton-atras{
    position: absolute;
    top:50px;
}

/* Estilos del botón */
.ir-arriba {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    /* Oculto por defecto */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.ir-arriba:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.icon {
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.pdf-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* == referencialistado == */

.year_selector {
    display: flex;
    /* width: 50%; */
    margin: auto;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* .main_table {
        display: none;
    } */

/* Contenedor de las cards */
.referencia-listado-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Card individual */
.referencia-listado-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    margin: 20px 0;
}

.referencia-listado-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Badge nuevo */
.badge-nuevo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

/* Header */
.card-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.referencia-info {
    flex: 1;
}

.nombre-contacto {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.referente {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.fecha {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Body */
.card-body {
    padding: 20px;
}

.info-linea {
    margin-bottom: 12px;
}

.info-linea:last-child {
    margin-bottom: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.etiqueta {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.valor {
    font-weight: 400;
    text-align: right;
    font-size: 0.9rem;
}

/* Estados GNC */
.gnc-completado {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-weight: 500;
}

.gnc-icon {
    font-weight: 600;
}

.gnc-fecha {
    font-size: 0.8rem;
    opacity: 0.8;
}

.gnc-pendiente {
    color: #6c757d;
    font-style: italic;
}

/* Footer */
.card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.ver-detalles {
    color: #007bff;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Estados no vistos */
.no-visto {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .referencia-listado-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .valor {
        text-align: left;
    }
}

.referencia-listado-card {
    font-size: 20px;
    /* Aún más grande */
}

.card-header {
    padding: 30px 25px 25px;
}

.nombre-contacto {
    font-size: 1.8rem;
    /* Más grande */
    margin-bottom: 12px;
    line-height: 1.3;
}

.referente {
    font-size: 1.4rem;
    /* Más grande */
    margin-bottom: 8px;
    line-height: 1.4;
}

.fecha {
    font-size: 1.3rem;
    /* Más grande */
    font-weight: 700;
    padding: 10px 15px;
}

.card-body {
    padding: 30px 25px;
}

.info-linea {
    margin-bottom: 20px;
}

.etiqueta {
    font-size: 1.3rem;
    /* Más grande */
    font-weight: 700;
    color: #333;
}

.valor {
    font-size: 1.3rem;
    /* Más grande */
    font-weight: 600;
    color: #222;
}

.ver-detalles {
    font-size: 1.4rem;
    /* Más grande */
    font-weight: 700;
    padding: 15px;
}

.badge-nuevo {
    font-size: 1.1rem;
    padding: 8px 16px;
    top: 15px;
    right: 15px;
}

/* Asegurar que los enlaces sean fáciles de tocar */
.card-link {
    min-height: 120px;
    /* Área de toque más grande */
}

/* Mejorar espaciado entre elementos */
.info-item {
    gap: 10px;
    padding: 12px 0;
}

.year_selector {
    display: flex;
    overflow-x: auto;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    padding: 0 10px;
    margin-bottom: 0;
    border-bottom: 2px solid #dee2e6;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.year_selector::-webkit-scrollbar {
    display: none;
}

.year_tab {
    flex-shrink: 0;
    margin: 0 2px;
}

.year_item {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    text-align: center;
}

/* Pestaña activa */
.year_item.active {
    color: #007bff;
    background: white;
    border-bottom: 3px solid #007bff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

/* Efecto hover */
.year_item:hover {
    color: #007bff;
    background: #e9ecef;
    border-bottom: 3px solid #6c757d;
}

/* Pestaña activa hover */
.year_item.active:hover {
    background: white;
    border-bottom: 3px solid #0056b3;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .year_selector {
        padding: 0 5px;
        border-radius: 8px 8px 0 0;
    }
    
    .year_item {
        padding: 18px 20px;
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .year_tab {
        margin: 0 1px;
    }
}

@media (max-width: 480px) {
    .year_item {
        padding: 16px 15px;
        font-size: 1.1rem;
    }
}

/* //asociados */

/* Contenedor de perfiles */
.profiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Tarjeta de perfil individual */
.profile-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.profile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Imagen de perfil */
.profile-image {
    padding: 25px 25px 15px;
    text-align: center;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid #f8f9fa;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.8;
}

/* Información del perfil */
.profile-info {
    padding: 0 25px 20px;
    text-align: center;
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.profile-company {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Acción del perfil */
.profile-action {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.view-profile {
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
}

/* Efectos hover */
.profile-card:hover .view-profile {
    color: #0056b3;
}

.profile-card:hover .profile-name {
    color: #007bff;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .profiles-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px 0;
    }
    
    .profile-image {
        padding: 20px 20px 10px;
    }
    
    .profile-photo,
    .profile-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .profile-info {
        padding: 0 20px 15px;
    }
    
    .profile-name {
        font-size: 1.3rem;
    }
    
    .profile-company {
        font-size: 1rem;
    }
    
    .profile-action {
        padding: 12px 20px;
    }
    
    .view-profile {
        font-size: 1.1rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .profiles-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-card {
        margin: 0 10px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-company {
        font-size: 1.2rem;
    }
}

/* Efecto de carga suave */
.profile-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que ocupe toda la altura disponible */
    min-height: 300px; /* Altura mínima opcional */
}

.profile-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ocupa todo el espacio disponible */
    text-decoration: none;
    color: inherit;
}

.profile-action {
    margin-top: auto; /* Empuja el elemento hacia abajo */
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 2em;
    transition: all 0.2s ease;
    border: 2px solid #25D366;
}

.whatsapp-btn:hover {
    background: transparent;
    color: #25D366;
    transform: scale(1.05);
}

.whatsapp-icon {
    font-size: 20px;
}

#download_pdf_icon{
    position: absolute;
    top: 200px;
    left: 100px;
    scale: 2;
}

.btn-contactos {
    width: 55%;
    padding: 14px 28px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-contactos:hover {
    background: #1976D2;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
    transform: translateY(-1px);
}