/* style.css - CÓDIGO COMPLETO Y FINAL */

/* Contenedor principal de la tarjeta de enlaces (CAPA 3: Fondo Completo/Color) */
.thi-link-card-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 0; 
    box-sizing: border-box;
    color: #333333; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
}

/* El contenido real, limitado en ancho y centrado */
.thi-link-card-container {
    max-width: 450px; 
    width: 100%;
    text-align: center;
    z-index: 10; 
}

/* NUEVA CAPA: Banner de Encabezado (CAPA 2) */
.thi-link-card-banner {
    width: 100%;
    height: 150px; 
    position: relative; 
    margin-bottom: 70px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thi-link-card-banner-no-img {
    background-color: #f0f0f0 !important; 
}

/* NUEVO: Contenedor Principal (Fondo 2) */
.thi-link-card-content-card {
    width: 100%;
    padding-top: 20px; 
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    min-height: calc(100vh - 150px); 
}


/* ITEM 3: LOGO y su contenedor (Color de fondo y dimensiones) */
.thi-link-card-logo {
    position: absolute;
    bottom: -60px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    /* El color de fondo es dinámico */
}

.thi-link-card-logo .logo-img {
    width: 100%; 
    height: 100%; 
    
    /* CLAVE PARA EL ESCALADO SIN DEFORMAR */
    object-fit: contain; 
    
    border-radius: 50%; 
    border: 5px solid #FFFFFF; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 5px; 
    background-color: #FFFFFF;
}

/* Área de contenido debajo del logo */
.thi-link-card-content-area {
    padding: 0; 
}

/* Estilo para el Nombre de la Empresa */
.thi-link-card-company-name {
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: inherit;
}

/* Estilo para la descripción de la empresa */
.thi-link-card-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.4;
    color: inherit; 
}

/* Contenedor de los enlaces/botones */
.thi-link-card-links {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    margin-bottom: 40px;
}

/* Estilo para el botón de enlace (Tipo píldora) */
.thi-link-card-button {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 1.05em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex; 
    align-items: center;
    justify-content: center;
}

/* Espacio para el icono dentro del botón */
.thi-link-card-button i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Efecto hover/activo */
.thi-link-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.thi-link-card-button:visited {
    color: inherit;
}

/* Estilo del pie de página (Créditos) */
.thi-link-card-footer {
    padding-bottom: 20px;
    margin-top: 40px; 
}

.thi-link-card-footer p {
    font-size: 0.85em;
    opacity: 0.7;
    color: inherit;
}

.thi-link-card-footer a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

/* Responsividad */
@media (max-width: 480px) {
    .thi-link-card-banner {
        height: 120px;
        margin-bottom: 60px;
    }
    .thi-link-card-logo .logo-img {
        width: 100px;
        height: 100px;
    }
}