/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 2/04/2026, 11:09:00 AM
    Author     : kpesantez
*/
/* CONTENEDOR PRINCIPAL */
.resultados-wrapper {
    max-width: 900px;
    margin: 0 auto 25px auto;
    background: #f5f7f9;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===================== */
/*  TABS ESTILO TARJETA */
/* ===================== */

.resultados-tabs {
    display: flex;
    gap: 20px;
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

/* TAB */
.tab {
    flex: 1;
    display: flex;
    flex-direction: column; /* vertical */
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 30px 20px;
    border-radius: 5px;
    cursor: pointer;

    background: #ffffff;
    border: 1px solid #e0e6ed;

    font-weight: 600;
    transition: all 0.3s ease;
}

/* ICONO */
.tab i {
    font-size: 3rem;
    color: #68A883;
    margin-bottom: 15px;
}

.style attribute {
    color: #68A883;
}

/* TEXTO */
.tab-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TITULO */
.tab-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* DESCRIPCIÓN */
.tab-desc {
    font-size: 0.9rem;
    color: #666;
}

/* HOVER */
.tab:hover {
    transform: translateY(-5px);
    border-color: #00c853;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ACTIVO */
.tab.active {
    border: 2px solid #00c853;
    background: #f0fff5;
    box-shadow: 0 10px 25px rgba(0,200,83,0.25);
}

/* ===================== */
/* CONTENIDO */
/* ===================== */

.resultados-contenido {
    animation: fadeIn 0.4s ease;
}

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

/* ===================== */
/* IMÁGENES CIUDADES */
/* ===================== */

.ciudad-img {
    height: 120px !important; 
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    transition: all 0.3s ease;
}

#resultado_dinamico a:hover .ciudad-img {
    transform: scale(1.15);
    filter: none;
}

/* GRID */
.resultado-grid .col-sm-6 {
    display: flex;
}

.resultado-grid a.btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: 100%;

    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* CONTENEDOR IMAGEN */
.city-img-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGEN */
.city-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* TITULO */
.resultado-grid h5 {
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}

/* HOVER GRID */
.resultado-grid a.btn {
    background: #fff;
    border: 1px solid #eee;
}

.resultado-grid a.btn:hover {
    transform: translateY(-5px);
    border-color: #00c853;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.img-fluid {
    max-width: none !important;
    height: auto;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 768px) {
    .resultados-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .tab {
        flex-direction: row; /* horizontal en móvil */
        justify-content: flex-start;
        text-align: left;
        padding: 15px;
        border-radius: 10px;
    }

    .tab i {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 10px;
    }

    .tab-text {
        align-items: flex-start;
    }
}

.tab i.fas {
    color: #68A883 !important;
}
#linkUsuario svg,
#linkConvenio svg {
    color: #68A883 !important;
}
