/* ==========================================================================
   Obra Header Component – Production Design
   ========================================================================== */

.pf-redes-obra-header {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding-top: 24px;
    font-family: "Open Sans", sans-serif;
}

/* --- Left column: poster --- */
.pf-redes-obra-header__poster-col {
    flex: 0 0 38%;
    max-width: 38%;
    text-align: center;
}

.pf-redes-obra-header__poster-wrap {
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.pf-redes-obra-header__poster {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.pf-redes-obra-header__estado-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 6px;
}

.pf-redes-obra-header__estado-badge.estado-en-gira {
    background: #27ae60;
}

.pf-redes-obra-header__estado-badge.estado-borrador {
    background: #f39c12;
}

.pf-redes-obra-header__estado-badge.estado-historico {
    background: #909090;
}

.pf-redes-obra-header__recomendaciones {
    font-size: 13px;
    color: #909090;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pf-redes-obra-header__star-icon {
    color: #f39c12;
    font-size: 16px;
}

/* --- Right column: info --- */
.pf-redes-obra-header__info-col {
    flex: 1 1 0%;
    min-width: 0;
}

.pf-redes-obra-header__title {
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: #333333;
    margin: 0 0 4px;
    line-height: 1.2;
}

.pf-redes-obra-header__compania {
    font-size: 1.1rem;
    font-style: italic;
    color: #666666;
    margin: 0 0 16px;
    font-weight: 400;
}

/* Edit toggle */
.pf-redes-obra-header__edit-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 8px 14px;
    background: #f0f0f5;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.pf-redes-obra-header__edit-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #C91517;
}

.pf-redes-obra-header__switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.pf-redes-obra-header__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pf-redes-obra-header__switch-slider {
    position: absolute;
    inset: 0;
    background: #cccccc;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pf-redes-obra-header__switch-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.pf-redes-obra-header__switch input:checked + .pf-redes-obra-header__switch-slider {
    background: #C91517;
}

.pf-redes-obra-header__switch input:checked + .pf-redes-obra-header__switch-slider::before {
    transform: translateX(18px);
}

.pf-redes-obra-header__publish-estado {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #27ae60;
    padding: 4px 14px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pf-redes-obra-header__publish-estado strong {
    font-weight: 700;
}

/* Tags */
.pf-redes-obra-header__tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pf-redes-obra-header__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cccccc;
    background: transparent;
    color: #555555;
}

.pf-redes-obra-header__tag--sector {
    background: transparent;
}

.pf-redes-obra-header__tag--categoria {
    background: transparent;
}

.pf-redes-obra-header__tag--movimiento {
    background: transparent;
}

/* Badges (atributos) */
.pf-redes-obra-header__badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pf-redes-obra-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    overflow: hidden;
}

.pf-redes-obra-header__badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Etiquetas */
.pf-redes-obra-header__etiquetas {
    font-size: 13px;
    color: #666666;
    margin: 0 0 16px;
}

.pf-redes-obra-header__etiquetas strong {
    color: #333333;
}

/* Info table */
.pf-redes-obra-header__info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.pf-redes-obra-header__info-table th {
    text-align: left;
    font-weight: 700;
    color: #333333;
    padding: 6px 12px 6px 0;
    white-space: nowrap;
    width: 1%;
    border-bottom: 1px solid #eeeeee;
}

.pf-redes-obra-header__info-table td {
    padding: 6px 0;
    color: #555555;
    border-bottom: 1px solid #eeeeee;
}

.pf-redes-obra-header__info-table tr:last-child th,
.pf-redes-obra-header__info-table tr:last-child td {
    border-bottom: none;
}

/* Sinopsis */
.pf-redes-obra-header__sinopsis {
    margin-bottom: 20px;
}

.pf-redes-obra-header__sinopsis h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px;
    color: #333333;
}

.pf-redes-obra-header__sinopsis p {
    font-size: 14px;
    font-style: italic;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* --- Below-info section --- */
.pf-redes-obra-header__below {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    margin-bottom: 32px;
    border-top: 2px solid #eeeeee;
}

.pf-redes-obra-header__back-btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #ffffff;
    background: #C91517;
    padding: 8px 20px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.pf-redes-obra-header__back-btn:hover {
    background: #B90507;
    text-decoration: none;
    color: #ffffff;
}

.pf-redes-obra-header__share {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-redes-obra-header__share h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #333333;
}

.pf-redes-obra-header__export {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-redes-obra-header__export-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #333333;
}

.pf-redes-obra-header__actions {
    display: flex;
    gap: 8px;
}

.pf-redes-obra-header__action-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 3px;
    background: #C91517;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: none;
}

.pf-redes-obra-header__action-btn:hover {
    background: #B90507;
    color: #ffffff;
}

.pf-redes-obra-header__fuente {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-redes-obra-header__fuente-logo {
    height: 32px;
    width: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .pf-redes-obra-header {
        flex-direction: column;
    }

    .pf-redes-obra-header__poster-col,
    .pf-redes-obra-header__info-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pf-redes-obra-header__poster {
        max-width: 280px;
        margin: 0 auto;
    }

    .pf-redes-obra-header__edit-toggle {
        flex-wrap: wrap;
    }

    .pf-redes-obra-header__below {
        flex-direction: column;
        gap: 16px;
    }
}
