/* =========================================
   ESTILOS PREMIUM PARA FICHAS (ENTIDADES)
   ========================================= */

.ficha-container {
    padding-top: 100px;
    padding-bottom: 80px;
    color: #e0e0e0;
}

.ficha-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 65, 54, 0.3);
    position: relative;
}

.ficha-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #FF4136;
    box-shadow: 0 0 10px #FF4136;
}

.ficha-type-badge {
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 65, 54, 0.1);
    border: 1px solid rgba(255, 65, 54, 0.5);
    color: #FF4136;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.ficha-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.ficha-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #A9B7C6;
    margin-top: 10px;
    font-weight: 300;
}

/* Infobox Lateral Premium (Glassmorphism) */
.ficha-infobox {
    background: rgba(17, 17, 17, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.infobox-header {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.infobox-image {
    width: 100%;
    height: 350px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    background: #000;
}
.infobox-image::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    box-shadow: inset 0 -40px 40px rgba(0,0,0,0.8);
    pointer-events: none;
}
.infobox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}
.ficha-infobox:hover .infobox-image img {
    transform: scale(1.05);
}

.infobox-no-image {
    padding: 50px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.infobox-no-image i {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.infobox-content {
    padding: 20px;
}

.infobox-row {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}
.infobox-row:last-child {
    border-bottom: none;
}

.infobox-row strong {
    color: #A9B7C6;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}
.infobox-row span {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.infobox-row span.alias-list {
    color: #66FCF1;
    font-weight: 400;
}

/* Contenido Principal Premium */
.ficha-main-content {
    background: transparent;
    padding: 0 15px;
}

.ficha-lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #fff;
    font-weight: 300;
    margin-bottom: 25px;
    border-left: 3px solid #FF4136;
    padding-left: 20px;
}

.ficha-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.ficha-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #C5C6C7;
}

.ficha-body p {
    margin-bottom: 20px;
}

.ficha-body h2, .ficha-body h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}
.ficha-body h2 { font-size: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom:10px; }
.ficha-body h3 { font-size: 1.5rem; color: #66FCF1; }

.ficha-body a {
    color: #66FCF1;
    text-decoration: none;
    border-bottom: 1px dashed rgba(102, 252, 241, 0.5);
    transition: all 0.3s ease;
}
.ficha-body a:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

.ficha-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Related Cards Premium */
.related-card {
    background: rgba(17, 17, 17, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-color: rgba(102, 252, 241, 0.3);
}
.related-card-img {
    height: 160px;
    overflow: hidden;
    position: relative;
}
.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.related-card:hover .related-card-img img {
    transform: scale(1.1);
}
.related-card-img::after {
    content: '';
    position: absolute;
    bottom:0; left:0; width:100%; height:50%;
    background: linear-gradient(to top, rgba(17,17,17,1), transparent);
}
.related-card-body {
    padding: 20px;
}
.related-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.related-card:hover .related-card-title {
    color: #66FCF1;
}
.related-card-text {
    font-size: 0.85rem;
    color: #A9B7C6;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ficha-title { font-size: 2.5rem; }
    .ficha-infobox { position: static; margin-bottom: 40px; }
    .ficha-container { padding-top: 40px; }
}
