/* ==========================================================================
   ESTILOS FICHA BIOGRAFÍA V9.1 (Optimizado: Variables Nativas y Clases Limpias)
   Carga solo en single-biografia.php
   ========================================================================== */

/* Fondo general */
.bio-page-container {
    background-color: #F5F3EF;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    color: #111;
}

.bio-grid-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 60px;
}

/* --- COLUMNA IZQUIERDA: TARJETA VISUAL --- */
.bio-card-wrapper { position: relative; padding: 10px; }

.bio-card-inner {
    background-color: #fff;
    border-radius: 16px;
    padding: 15px 15px 0 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}
.bio-card-inner:hover { transform: rotate(0deg) scale(1.02); }

.bio-card-info-mini { margin-bottom: 15px; }
.bio-card-name-mini { font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.1; }
.bio-card-meta-mini { font-size: 0.9rem; font-weight: 700; color: var(--brand-lime); text-transform: uppercase; margin-top: 2px; margin-bottom: 10px; }

/* Contenedor Imagen */
.legend-img-wrap {
    background-color: transparent;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    line-height: 0;
}
.legend-img-wrap.bio-img-wrap { margin-top: 15px; }

.bio-hero-img, .legend-responsive-img {
    width: 100%; height: auto; display: block; object-fit: cover; transition: filter 0.3s;
}

/* Placeholder sin foto */
.bio-no-photo { padding: 50px; background: #eee; text-align: center; color: #999; }

/* Zoom Lupa */
.bio-custom-zoom { display: block; position: relative; cursor: zoom-in; }
.bio-custom-zoom:hover img { filter: brightness(0.9); }

/* Acciones Edit */
.bio-edit-action { padding: 15px 0; }
.btn-suggest-edit {
    display: block; width: 100%; padding: 10px;
    background-color: #f5f5f5; border: 1px dashed #ccc;
    border-radius: 8px; color: #555; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease; text-align: center; margin-top: 15px;
}
.btn-suggest-edit:hover { background-color: #fff; border-color: var(--brand-lime); color: var(--brand-lime); }

/* Redes Sociales Mini */
.bio-social-icons { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.bio-social-icons a { 
    color: #555; transition: color 0.2s; 
    display: flex; align-items: center; justify-content: center;
    padding: 2px;
}
.bio-social-icons a:hover { color: var(--brand-lime); }
.bio-social-icons svg { overflow: visible; }

/* --- COLUMNA DERECHA: INFO --- */
.bio-main-name {
    font-family: 'Inter', sans-serif; font-size: 4rem; font-weight: 900;
    text-transform: uppercase; line-height: 0.9; margin-bottom: 30px; letter-spacing: -2px;
}

.bio-info-content { min-width: 0; }

.bio-stats-row {
    display: flex; flex-wrap: wrap; gap: 30px 50px;
    margin-bottom: 40px; border-bottom: 1px solid #ddd; padding-bottom: 30px;
}
.stat-item { display: flex; flex-direction: column; }
.stat-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: #888; margin-bottom: 4px; }
.stat-value-text { font-size: 1rem; font-weight: 700; }
.bio-cat-link { color: var(--brand-lime); text-decoration: none; }

/* === CONTENIDO BIOGRAFÍA EXPANDIBLE === */
.bio-text-content {
    overflow: hidden; transition: max-height 0.5s ease;
}

.bio-text-content.collapsed {
    max-height: 400px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.bio-expand-btn {
    display: table; margin: 10px auto 0; background: #fff; border: 1px solid #ccc;
    padding: 8px 20px; border-radius: 20px; cursor: pointer;
    font-weight: 700; font-size: 0.9rem; color: var(--text-muted);
    transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.bio-expand-btn:hover { background: var(--text-muted); color: #fff; border-color: var(--text-muted); }

/* --- SECCIONES DESPLEGABLES (CINE Y PREMIOS) --- */
.bio-section-title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 15px; margin-top: 40px; }
.filmography-section, .awards-section { border-top: 1px solid #ddd; padding-top: 30px; }

/* Caja Acordeón */
.filmo-category { margin-bottom: 20px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.filmo-summary {
    background: #f4f4f4; padding: 15px 20px; cursor: pointer;
    font-weight: 800; font-family: var(--font-titles); font-size: 1.2rem;
    display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.filmo-summary:hover { background: #e9e9e9; }
.filmo-summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; }
details[open] .filmo-summary::after { content: '-'; }

/* Cine Items */
.filmo-list { display: flex; flex-direction: column; }
.filmo-item {
    display: flex; gap: 15px; padding: 15px 20px; border-bottom: 1px solid #eee;
    align-items: center; background: #fff; transition: background 0.2s;
}
.filmo-item:hover { background: #fafafa; }
.filmo-thumb { width: 50px; height: 70px; object-fit: cover; border-radius: 4px; background: #ccc; flex-shrink: 0; }
.filmo-info { flex-grow: 1; }
.filmo-title { font-weight: 700; font-size: 1rem; color: var(--text-muted); display: block; }
.filmo-role { font-size: 0.9rem; color: #666; margin-top: 2px; }
.filmo-year-text { color: #999; }
.filmo-rating { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.filmo-star { color: #F5C518; }

/* --- PREMIOS --- */
.award-item {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.award-item:last-child { border-bottom: none; }
.award-item:hover { background: #f9f9f9; }

.award-year-text { font-weight: 900; font-size: 1.2rem; color: var(--text-muted); font-family: var(--font-titles); }
.award-name-text { font-weight: 800; font-size: 1rem; color: #000; display: block; margin-bottom: 2px; }
.award-cat-text { font-size: 0.95rem; color: #444; display: block; }
.award-prod-text { font-size: 0.9rem; color: #888; font-style: italic; display: block; margin-top: 2px; }
.award-result-text { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.award-result-text.ganador { color: #2e7d32; }
.award-result-text.nominado { color: #757575; }

/* Desktop vs Mobile para Premios */
.award-meta-mobile { display: none; }
.award-col-year, .award-col-res { display: block; }

@media (min-width: 992px) {
    .award-item { display: grid; grid-template-columns: 80px 1fr 150px; gap: 30px; align-items: center; }
    .award-result-text { text-align: right; }
    .bio-grid-layout { grid-template-columns: 350px 1fr; align-items: start; }
    .bio-visual-sidebar { position: sticky; top: 40px; }
}

@media (max-width: 991px) {
    .award-item { display: flex; flex-direction: column; gap: 5px; }
    .award-meta-mobile { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
    .award-col-year, .award-col-res { display: none; }
    .award-year-text { font-size: 1.1rem; }
    
    .bio-grid-layout { grid-template-columns: 1fr; }
    .bio-card-wrapper { max-width: 320px; margin: 0 auto; }
    .bio-main-name { font-size: 3rem; text-align: center; margin-top: 20px; }
    .bio-stats-row { justify-content: center; text-align: center; }
}